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

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

Issue 11896113: Add chrome-search: access from Instant overlay (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yet another rebase Created 7 years, 9 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/instant/instant_page.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
diff --git a/chrome/browser/instant/instant_service.h b/chrome/browser/instant/instant_service.h
index 9bf8f5d64851cf2b80807dab6090ba25e92f2824..4e08d89e10c693e60eb5767f4f4fe81f108d4ef1 100644
--- a/chrome/browser/instant/instant_service.h
+++ b/chrome/browser/instant/instant_service.h
@@ -9,15 +9,19 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/memory/ref_counted.h"
#include "chrome/browser/profiles/profile_keyed_service.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
+class InstantIOContext;
+class Profile;
+
// Tracks render process host IDs that are associated with Instant.
class InstantService : public ProfileKeyedService,
public content::NotificationObserver {
public:
- InstantService();
+ explicit InstantService(Profile* profile);
virtual ~InstantService();
// Add, remove, and query RenderProcessHost IDs that are associated with
@@ -40,11 +44,15 @@ class InstantService : public ProfileKeyedService,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
+ Profile* const profile_;
+
// The process ids associated with Instant processes.
std::set<int> process_ids_;
content::NotificationRegistrar registrar_;
+ scoped_refptr<InstantIOContext> instant_io_context_;
+
DISALLOW_COPY_AND_ASSIGN(InstantService);
};
« no previous file with comments | « chrome/browser/instant/instant_page.cc ('k') | chrome/browser/instant/instant_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698