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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 void OnSetContentSettingRules(const RendererContentSettingRules& rules); | 55 void OnSetContentSettingRules(const RendererContentSettingRules& rules); |
56 void OnSetCacheCapacities(size_t min_dead_capacity, | 56 void OnSetCacheCapacities(size_t min_dead_capacity, |
57 size_t max_dead_capacity, | 57 size_t max_dead_capacity, |
58 size_t capacity); | 58 size_t capacity); |
59 // 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 |
60 // navigation event. | 60 // navigation event. |
61 void OnClearCache(bool on_navigation); | 61 void OnClearCache(bool on_navigation); |
62 void OnGetCacheResourceStats(); | 62 void OnGetCacheResourceStats(); |
63 void OnSetFieldTrialGroup(const std::string& fiel_trial_name, | 63 void OnSetFieldTrialGroup(const std::string& fiel_trial_name, |
64 const std::string& group_name); | 64 const std::string& group_name); |
65 void OnGetRendererTcmalloc(); | |
66 void OnSetTcmallocHeapProfiling(bool profiling, const std::string& prefix); | 65 void OnSetTcmallocHeapProfiling(bool profiling, const std::string& prefix); |
67 void OnWriteTcmallocHeapProfile(const FilePath::StringType& filename); | 66 void OnWriteTcmallocHeapProfile(const FilePath::StringType& filename); |
68 void OnGetV8HeapStats(); | 67 void OnGetV8HeapStats(); |
69 void OnPurgeMemory(); | 68 void OnPurgeMemory(); |
70 | 69 |
71 static bool is_incognito_process_; | 70 static bool is_incognito_process_; |
72 scoped_ptr<content::ResourceDispatcherDelegate> resource_delegate_; | 71 scoped_ptr<content::ResourceDispatcherDelegate> resource_delegate_; |
73 chrome::ChromeContentRendererClient* client_; | 72 chrome::ChromeContentRendererClient* client_; |
74 // If true, the web cache shall be cleared before the next navigation event. | 73 // If true, the web cache shall be cleared before the next navigation event. |
75 bool clear_cache_pending_; | 74 bool clear_cache_pending_; |
76 RendererContentSettingRules content_setting_rules_; | 75 RendererContentSettingRules content_setting_rules_; |
77 | 76 |
78 DISALLOW_COPY_AND_ASSIGN(ChromeRenderProcessObserver); | 77 DISALLOW_COPY_AND_ASSIGN(ChromeRenderProcessObserver); |
79 }; | 78 }; |
80 | 79 |
81 #endif // CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_ | 80 #endif // CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_ |
OLD | NEW |