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_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 |
(...skipping 30 matching lines...) Expand all Loading... |
41 // any 'clear cache' commands that were delayed until the next navigation. | 41 // any 'clear cache' commands that were delayed until the next navigation. |
42 void ExecutePendingClearCache(); | 42 void ExecutePendingClearCache(); |
43 | 43 |
44 // Returns a pointer to the content setting rules owned by | 44 // Returns a pointer to the content setting rules owned by |
45 // |ChromeRenderProcessObserver|. | 45 // |ChromeRenderProcessObserver|. |
46 const RendererContentSettingRules* content_setting_rules() const; | 46 const RendererContentSettingRules* content_setting_rules() const; |
47 | 47 |
48 private: | 48 private: |
49 // RenderProcessObserver implementation. | 49 // RenderProcessObserver implementation. |
50 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; | 50 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; |
51 virtual void WebKitInitialized() OVERRIDE; | |
52 | 51 |
53 void OnSetIsIncognitoProcess(bool is_incognito_process); | 52 void OnSetIsIncognitoProcess(bool is_incognito_process); |
54 void OnSetContentSettingsForCurrentURL( | 53 void OnSetContentSettingsForCurrentURL( |
55 const GURL& url, const ContentSettings& content_settings); | 54 const GURL& url, const ContentSettings& content_settings); |
56 void OnSetContentSettingRules(const RendererContentSettingRules& rules); | 55 void OnSetContentSettingRules(const RendererContentSettingRules& rules); |
57 void OnSetCacheCapacities(size_t min_dead_capacity, | 56 void OnSetCacheCapacities(size_t min_dead_capacity, |
58 size_t max_dead_capacity, | 57 size_t max_dead_capacity, |
59 size_t capacity); | 58 size_t capacity); |
60 // If |on_navigation| is true, the clearing is delayed until the next | 59 // If |on_navigation| is true, the clearing is delayed until the next |
61 // navigation event. | 60 // navigation event. |
(...skipping 11 matching lines...) Expand all Loading... |
73 scoped_ptr<content::ResourceDispatcherDelegate> resource_delegate_; | 72 scoped_ptr<content::ResourceDispatcherDelegate> resource_delegate_; |
74 chrome::ChromeContentRendererClient* client_; | 73 chrome::ChromeContentRendererClient* client_; |
75 // If true, the web cache shall be cleared before the next navigation event. | 74 // If true, the web cache shall be cleared before the next navigation event. |
76 bool clear_cache_pending_; | 75 bool clear_cache_pending_; |
77 RendererContentSettingRules content_setting_rules_; | 76 RendererContentSettingRules content_setting_rules_; |
78 | 77 |
79 DISALLOW_COPY_AND_ASSIGN(ChromeRenderProcessObserver); | 78 DISALLOW_COPY_AND_ASSIGN(ChromeRenderProcessObserver); |
80 }; | 79 }; |
81 | 80 |
82 #endif // CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_ | 81 #endif // CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_ |
OLD | NEW |