OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 21 matching lines...) Expand all Loading... |
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 // Returns a pointer to the content setting rules owned by | 36 // Returns a pointer to the content setting rules owned by |
37 // |ChromeRenderProcessObserver|. | 37 // |ChromeRenderProcessObserver|. |
38 const RendererContentSettingRules* content_setting_rules() const; | 38 const RendererContentSettingRules* content_setting_rules() const; |
39 | 39 |
40 private: | 40 private: |
41 // RenderProcessObserver implementation. | 41 // RenderProcessObserver implementation. |
42 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; | 42 virtual bool OnControlMessageReceived(const IPC::Message& message) override; |
43 virtual void WebKitInitialized() OVERRIDE; | 43 virtual void WebKitInitialized() override; |
44 virtual void OnRenderProcessShutdown() OVERRIDE; | 44 virtual void OnRenderProcessShutdown() override; |
45 | 45 |
46 void OnSetIsIncognitoProcess(bool is_incognito_process); | 46 void OnSetIsIncognitoProcess(bool is_incognito_process); |
47 void OnSetContentSettingsForCurrentURL( | 47 void OnSetContentSettingsForCurrentURL( |
48 const GURL& url, const ContentSettings& content_settings); | 48 const GURL& url, const ContentSettings& content_settings); |
49 void OnSetContentSettingRules(const RendererContentSettingRules& rules); | 49 void OnSetContentSettingRules(const RendererContentSettingRules& rules); |
50 void OnGetCacheResourceStats(); | 50 void OnGetCacheResourceStats(); |
51 void OnSetFieldTrialGroup(const std::string& fiel_trial_name, | 51 void OnSetFieldTrialGroup(const std::string& fiel_trial_name, |
52 const std::string& group_name); | 52 const std::string& group_name); |
53 void OnGetV8HeapStats(); | 53 void OnGetV8HeapStats(); |
54 | 54 |
55 static bool is_incognito_process_; | 55 static bool is_incognito_process_; |
56 scoped_ptr<content::ResourceDispatcherDelegate> resource_delegate_; | 56 scoped_ptr<content::ResourceDispatcherDelegate> resource_delegate_; |
57 ChromeContentRendererClient* client_; | 57 ChromeContentRendererClient* client_; |
58 // If true, the web cache shall be cleared before the next navigation event. | 58 // If true, the web cache shall be cleared before the next navigation event. |
59 bool clear_cache_pending_; | 59 bool clear_cache_pending_; |
60 RendererContentSettingRules content_setting_rules_; | 60 RendererContentSettingRules content_setting_rules_; |
61 | 61 |
62 bool webkit_initialized_; | 62 bool webkit_initialized_; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(ChromeRenderProcessObserver); | 64 DISALLOW_COPY_AND_ASSIGN(ChromeRenderProcessObserver); |
65 }; | 65 }; |
66 | 66 |
67 #endif // CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_ | 67 #endif // CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_ |
OLD | NEW |