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

Side by Side Diff: chrome/browser/renderer_host/chrome_render_view_host_observer.h

Issue 7688006: Revert 97465 - Revert 97446 - Modifying prefetch to account for multi-profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_RENDERER_HOST_CHROME_RENDER_VIEW_HOST_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_VIEW_HOST_OBSERVER_H_
6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_VIEW_HOST_OBSERVER_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_VIEW_HOST_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/browser/renderer_host/render_view_host_observer.h" 9 #include "content/browser/renderer_host/render_view_host_observer.h"
10 10
11 namespace chrome_browser_net {
12 class Predictor;
13 }
14
11 class Extension; 15 class Extension;
12 16
13 // This class holds the Chrome specific parts of RenderViewHost, and has the 17 // This class holds the Chrome specific parts of RenderViewHost, and has the
14 // same lifetime. 18 // same lifetime.
15 class ChromeRenderViewHostObserver : public RenderViewHostObserver { 19 class ChromeRenderViewHostObserver : public RenderViewHostObserver {
16 public: 20 public:
17 explicit ChromeRenderViewHostObserver(RenderViewHost* render_view_host); 21 ChromeRenderViewHostObserver(RenderViewHost* render_view_host,
22 chrome_browser_net::Predictor* predictor);
18 virtual ~ChromeRenderViewHostObserver(); 23 virtual ~ChromeRenderViewHostObserver();
19 24
20 // RenderViewHostObserver overrides. 25 // RenderViewHostObserver overrides.
21 virtual void RenderViewHostInitialized() OVERRIDE; 26 virtual void RenderViewHostInitialized() OVERRIDE;
22 virtual void Navigate(const ViewMsg_Navigate_Params& params) OVERRIDE; 27 virtual void Navigate(const ViewMsg_Navigate_Params& params) OVERRIDE;
23 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 28 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
24 29
25 private: 30 private:
26 // Does extension-specific initialization when a new RenderViewHost is 31 // Does extension-specific initialization when a new RenderViewHost is
27 // created. 32 // created.
28 void InitRenderViewHostForExtensions(); 33 void InitRenderViewHostForExtensions();
29 // Does extension-specific initialization when a new renderer process is 34 // Does extension-specific initialization when a new renderer process is
30 // created by a RenderViewHost. 35 // created by a RenderViewHost.
31 void InitRenderViewForExtensions(); 36 void InitRenderViewForExtensions();
32 // Gets the extension or app (if any) that is associated with the RVH. 37 // Gets the extension or app (if any) that is associated with the RVH.
33 const Extension* GetExtension(); 38 const Extension* GetExtension();
34 39
35 void OnDomOperationResponse(const std::string& json_string, 40 void OnDomOperationResponse(const std::string& json_string,
36 int automation_id); 41 int automation_id);
37 42
43 chrome_browser_net::Predictor* predictor_;
44
38 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewHostObserver); 45 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewHostObserver);
39 }; 46 };
40 47
41 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_VIEW_HOST_OBSERVER_H_ 48 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_VIEW_HOST_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698