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

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

Issue 8636023: Make RenderViewHostObserver interface not use a struct from view_messages.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/renderer_host/chrome_render_view_host_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 { 11 namespace chrome_browser_net {
12 class Predictor; 12 class Predictor;
13 } 13 }
14 14
15 class Extension; 15 class Extension;
16 class Profile; 16 class Profile;
17 17
18 // This class holds the Chrome specific parts of RenderViewHost, and has the 18 // This class holds the Chrome specific parts of RenderViewHost, and has the
19 // same lifetime. 19 // same lifetime.
20 class ChromeRenderViewHostObserver : public RenderViewHostObserver { 20 class ChromeRenderViewHostObserver : public RenderViewHostObserver {
21 public: 21 public:
22 ChromeRenderViewHostObserver(RenderViewHost* render_view_host, 22 ChromeRenderViewHostObserver(RenderViewHost* render_view_host,
23 chrome_browser_net::Predictor* predictor); 23 chrome_browser_net::Predictor* predictor);
24 virtual ~ChromeRenderViewHostObserver(); 24 virtual ~ChromeRenderViewHostObserver();
25 25
26 // RenderViewHostObserver overrides. 26 // RenderViewHostObserver overrides.
27 virtual void RenderViewHostInitialized() OVERRIDE; 27 virtual void RenderViewHostInitialized() OVERRIDE;
28 virtual void RenderViewHostDestroyed(RenderViewHost* rvh) OVERRIDE; 28 virtual void RenderViewHostDestroyed(RenderViewHost* rvh) OVERRIDE;
29 virtual void Navigate(const ViewMsg_Navigate_Params& params) OVERRIDE; 29 virtual void Navigate(const GURL& url) OVERRIDE;
30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
31 31
32 private: 32 private:
33 // Does extension-specific initialization when a new RenderViewHost is 33 // Does extension-specific initialization when a new RenderViewHost is
34 // created. 34 // created.
35 void InitRenderViewHostForExtensions(); 35 void InitRenderViewHostForExtensions();
36 // Does extension-specific initialization when a new renderer process is 36 // Does extension-specific initialization when a new renderer process is
37 // created by a RenderViewHost. 37 // created by a RenderViewHost.
38 void InitRenderViewForExtensions(); 38 void InitRenderViewForExtensions();
39 // Gets the extension or app (if any) that is associated with the RVH. 39 // Gets the extension or app (if any) that is associated with the RVH.
40 const Extension* GetExtension(); 40 const Extension* GetExtension();
41 // Cleans up when a RenderViewHost is removed, or on destruction. 41 // Cleans up when a RenderViewHost is removed, or on destruction.
42 void RemoveRenderViewHostForExtensions(RenderViewHost* rvh); 42 void RemoveRenderViewHostForExtensions(RenderViewHost* rvh);
43 43
44 void OnDomOperationResponse(const std::string& json_string, 44 void OnDomOperationResponse(const std::string& json_string,
45 int automation_id); 45 int automation_id);
46 void OnFocusedEditableNodeTouched(); 46 void OnFocusedEditableNodeTouched();
47 47
48 Profile* profile_; 48 Profile* profile_;
49 chrome_browser_net::Predictor* predictor_; 49 chrome_browser_net::Predictor* predictor_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewHostObserver); 51 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewHostObserver);
52 }; 52 };
53 53
54 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_VIEW_HOST_OBSERVER_H_ 54 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_VIEW_HOST_OBSERVER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/chrome_render_view_host_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698