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

Side by Side Diff: chrome/renderer/chrome_render_process_observer.h

Issue 8116009: Move RenderProcessObserver and RenderViewVisitor to content\public\renderer and put them in the c... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
« no previous file with comments | « no previous file | chrome/renderer/chrome_render_process_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_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_ 5 #ifndef CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_
6 #define CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_ 6 #define CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "content/renderer/render_process_observer.h" 14 #include "content/public/renderer/render_process_observer.h"
15 15
16 namespace chrome { 16 namespace chrome {
17 class ChromeContentRendererClient; 17 class ChromeContentRendererClient;
18 } 18 }
19 19
20 class GURL; 20 class GURL;
21 class ResourceDispatcherDelegate; 21 class ResourceDispatcherDelegate;
22 struct ContentSettings; 22 struct ContentSettings;
23 23
24 // This class filters the incoming control messages (i.e. ones not destined for 24 // This class filters the incoming control messages (i.e. ones not destined for
25 // a RenderView) for Chrome specific messages that the content layer doesn't 25 // a RenderView) for Chrome specific messages that the content layer doesn't
26 // happen. If a few messages are related, they should probably have their own 26 // happen. If a few messages are related, they should probably have their own
27 // observer. 27 // observer.
28 class ChromeRenderProcessObserver : public RenderProcessObserver { 28 class ChromeRenderProcessObserver : public content::RenderProcessObserver {
29 public: 29 public:
30 explicit ChromeRenderProcessObserver( 30 explicit ChromeRenderProcessObserver(
31 chrome::ChromeContentRendererClient* client); 31 chrome::ChromeContentRendererClient* client);
32 virtual ~ChromeRenderProcessObserver(); 32 virtual ~ChromeRenderProcessObserver();
33 33
34 static bool is_incognito_process() { return is_incognito_process_; } 34 static bool is_incognito_process() { return is_incognito_process_; }
35 35
36 // Needs to be called by RenderViews in case of navigations to execute 36 // Needs to be called by RenderViews in case of navigations to execute
37 // any 'clear cache' commands that were delayed until the next navigation. 37 // any 'clear cache' commands that were delayed until the next navigation.
38 void ExecutePendingClearCache(); 38 void ExecutePendingClearCache();
(...skipping 25 matching lines...) Expand all
64 static bool is_incognito_process_; 64 static bool is_incognito_process_;
65 scoped_ptr<ResourceDispatcherDelegate> resource_delegate_; 65 scoped_ptr<ResourceDispatcherDelegate> resource_delegate_;
66 chrome::ChromeContentRendererClient* client_; 66 chrome::ChromeContentRendererClient* client_;
67 // If true, the web cache shall be cleared before the next navigation event. 67 // If true, the web cache shall be cleared before the next navigation event.
68 bool clear_cache_pending_; 68 bool clear_cache_pending_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(ChromeRenderProcessObserver); 70 DISALLOW_COPY_AND_ASSIGN(ChromeRenderProcessObserver);
71 }; 71 };
72 72
73 #endif // CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_ 73 #endif // CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/chrome_render_process_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698