Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(930)

Unified Diff: chrome/browser/extensions/extension_tab_util.h

Issue 10697017: Tabs Extension: Implementation of tabs.duplicate api. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_tab_util.h
===================================================================
--- chrome/browser/extensions/extension_tab_util.h (revision 150331)
+++ chrome/browser/extensions/extension_tab_util.h (working copy)
@@ -37,6 +37,11 @@
// Provides various utility functions that help manipulate tabs.
class ExtensionTabUtil {
public:
+ enum PrivacyFlags {
+ INCLUDE_PRIVACY_SENSITIVE_FIELDS,
+ OMIT_PRIVACY_SENSITIVE_FIELDS
+ };
+
static int GetWindowId(const Browser* browser);
static int GetWindowIdOfTabStripModel(const TabStripModel* tab_strip_model);
static int GetTabId(const content::WebContents* web_contents);
@@ -49,6 +54,10 @@
const content::WebContents* web_contents,
TabStripModel* tab_strip,
int tab_index);
+ static base::DictionaryValue* CreateTabValue(
+ const content::WebContents* web_contents,
+ TabStripModel* tab_strip,
+ int tab_index, PrivacyFlags flag);
// Create a tab value, overriding its kSelectedKey to the provided boolean.
static base::DictionaryValue* CreateTabValueActive(
const content::WebContents* web_contents,

Powered by Google App Engine
This is Rietveld 408576698