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

Unified Diff: chrome/browser/instant/instant_service.h

Issue 12087129: Move kChromeSearchScheme out of content since it's a chrome feature. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/instant/instant_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/instant/instant_service.h
===================================================================
--- chrome/browser/instant/instant_service.h (revision 180071)
+++ chrome/browser/instant/instant_service.h (working copy)
@@ -10,9 +10,12 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "chrome/browser/profiles/profile_keyed_service.h"
+#include "content/public/browser/notification_observer.h"
+#include "content/public/browser/notification_registrar.h"
// Tracks render process host ids that are associated with Instant.
-class InstantService : public ProfileKeyedService {
+class InstantService : public ProfileKeyedService,
+ public content::NotificationObserver {
public:
InstantService();
virtual ~InstantService();
@@ -20,7 +23,6 @@
// Add, remove, and query RenderProcessHost IDs that are associated with
// Instant processes.
void AddInstantProcess(int process_id);
- void RemoveInstantProcess(int process_id);
bool IsInstantProcess(int process_id) const;
// For testing.
@@ -30,9 +32,15 @@
// ProfileKeyedService:
virtual void Shutdown() OVERRIDE;
+ virtual void Observe(int type,
+ const content::NotificationSource& source,
dhollowa 2013/02/01 16:56:11 nit: indent
jam 2013/02/01 17:09:14 Done.
+ const content::NotificationDetails& details) OVERRIDE;
+
// The process ids associated with Instant processes.
std::set<int> process_ids_;
+ content::NotificationRegistrar registrar_;
+
DISALLOW_COPY_AND_ASSIGN(InstantService);
};
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/instant/instant_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698