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

Side by Side Diff: chrome/browser/extensions/tab_helper.h

Issue 1159733004: Encapsulate CSS selector declarative content condition tracking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stars-declarative-content-range-for
Patch Set: only notify navigation for tracked WebContents, address comments Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_
6 #define CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector>
11 10
12 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
15 #include "base/observer_list.h" 14 #include "base/observer_list.h"
16 #include "chrome/browser/extensions/active_tab_permission_granter.h" 15 #include "chrome/browser/extensions/active_tab_permission_granter.h"
17 #include "chrome/browser/extensions/extension_reenabler.h" 16 #include "chrome/browser/extensions/extension_reenabler.h"
18 #include "chrome/common/extensions/webstore_install_result.h" 17 #include "chrome/common/extensions/webstore_install_result.h"
19 #include "chrome/common/web_application_info.h" 18 #include "chrome/common/web_application_info.h"
20 #include "content/public/browser/notification_observer.h" 19 #include "content/public/browser/notification_observer.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 const std::string& webstore_item_id, 163 const std::string& webstore_item_id,
165 const GURL& requestor_url, 164 const GURL& requestor_url,
166 int listeners_mask); 165 int listeners_mask);
167 void OnGetAppInstallState(const GURL& requestor_url, 166 void OnGetAppInstallState(const GURL& requestor_url,
168 int return_route_id, 167 int return_route_id,
169 int callback_id); 168 int callback_id);
170 void OnRequest(const ExtensionHostMsg_Request_Params& params); 169 void OnRequest(const ExtensionHostMsg_Request_Params& params);
171 void OnContentScriptsExecuting( 170 void OnContentScriptsExecuting(
172 const ScriptExecutionObserver::ExecutingScriptsMap& extension_ids, 171 const ScriptExecutionObserver::ExecutingScriptsMap& extension_ids,
173 const GURL& on_url); 172 const GURL& on_url);
174 void OnWatchedPageChange(const std::vector<std::string>& css_selectors);
175 void OnDetailedConsoleMessageAdded(const base::string16& message, 173 void OnDetailedConsoleMessageAdded(const base::string16& message,
176 const base::string16& source, 174 const base::string16& source,
177 const StackTrace& stack_trace, 175 const StackTrace& stack_trace,
178 int32 severity_level); 176 int32 severity_level);
179 177
180 // App extensions related methods: 178 // App extensions related methods:
181 179
182 // Resets app_icon_ and if |extension| is non-null uses ImageLoader to load 180 // Resets app_icon_ and if |extension| is non-null uses ImageLoader to load
183 // the extension's image asynchronously. 181 // the extension's image asynchronously.
184 void UpdateExtensionAppIcon(const Extension* extension); 182 void UpdateExtensionAppIcon(const Extension* extension);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 266
269 // Generic weak ptr factory for posting callbacks. 267 // Generic weak ptr factory for posting callbacks.
270 base::WeakPtrFactory<TabHelper> weak_ptr_factory_; 268 base::WeakPtrFactory<TabHelper> weak_ptr_factory_;
271 269
272 DISALLOW_COPY_AND_ASSIGN(TabHelper); 270 DISALLOW_COPY_AND_ASSIGN(TabHelper);
273 }; 271 };
274 272
275 } // namespace extensions 273 } // namespace extensions
276 274
277 #endif // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ 275 #endif // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698