OLD | NEW |
---|---|
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 // This class holds the Chrome specific parts of RenderViewHost, and has the | 15 // This class holds the Chrome specific parts of RenderViewHost, and has the |
12 // same lifetime. | 16 // same lifetime. |
13 class ChromeRenderViewHostObserver : public RenderViewHostObserver { | 17 class ChromeRenderViewHostObserver : public RenderViewHostObserver { |
14 public: | 18 public: |
15 explicit ChromeRenderViewHostObserver(RenderViewHost* render_view_host); | 19 explicit ChromeRenderViewHostObserver( |
willchan no longer on Chromium
2011/08/12 21:51:47
Doesn't need to be explicit anymore.
rpetterson
2011/08/13 00:55:17
Done.
| |
20 RenderViewHost* render_view_host, | |
21 chrome_browser_net::Predictor* predictor); | |
16 virtual ~ChromeRenderViewHostObserver(); | 22 virtual ~ChromeRenderViewHostObserver(); |
17 | 23 |
18 // RenderViewHostObserver overrides. | 24 // RenderViewHostObserver overrides. |
19 virtual void Navigate(const ViewMsg_Navigate_Params& params) OVERRIDE; | 25 virtual void Navigate(const ViewMsg_Navigate_Params& params) OVERRIDE; |
20 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 26 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
21 | 27 |
22 private: | 28 private: |
23 void OnDomOperationResponse(const std::string& json_string, | 29 void OnDomOperationResponse(const std::string& json_string, |
24 int automation_id); | 30 int automation_id); |
25 | 31 |
32 chrome_browser_net::Predictor* predictor_; | |
33 | |
26 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewHostObserver); | 34 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewHostObserver); |
27 }; | 35 }; |
28 | 36 |
29 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_VIEW_HOST_OBSERVER_H_ | 37 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_VIEW_HOST_OBSERVER_H_ |
OLD | NEW |