[Smart Lock] Record a detailed UMA metric for each unlock attempt by Smart Lock users.
[chromium-blink-merge.git] / extensions / browser / view_type_utils.h
blobaea3d24e5a071905b53015d323917ca5c5ecf30b
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_BROWSER_VIEW_TYPE_UTILS_H_
6 #define EXTENSIONS_BROWSER_VIEW_TYPE_UTILS_H_
8 #include "extensions/common/view_type.h"
10 namespace content {
11 class WebContents;
14 namespace extensions {
16 // Get/Set the type of a WebContents.
17 // GetViewType handles a NULL |tab| for convenience by returning
18 // VIEW_TYPE_INVALID.
19 ViewType GetViewType(content::WebContents* tab);
20 void SetViewType(content::WebContents* tab, ViewType type);
22 } // namespace extensions
24 #endif // EXTENSIONS_BROWSER_VIEW_TYPE_UTILS_H_