| 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 |
| 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 "chrome/common/content_settings.h" |
| 14 #include "content/renderer/render_process_observer.h" | 15 #include "content/renderer/render_process_observer.h" |
| 15 | 16 |
| 16 namespace chrome { | 17 namespace chrome { |
| 17 class ChromeContentRendererClient; | 18 class ChromeContentRendererClient; |
| 18 } | 19 } |
| 19 | 20 |
| 20 class GURL; | 21 class GURL; |
| 21 class ResourceDispatcherDelegate; | 22 class ResourceDispatcherDelegate; |
| 22 struct ContentSettings; | 23 struct ContentSettings; |
| 23 | 24 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 35 | 36 |
| 36 private: | 37 private: |
| 37 // RenderProcessObserver implementation. | 38 // RenderProcessObserver implementation. |
| 38 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; | 39 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; |
| 39 virtual void WebKitInitialized() OVERRIDE; | 40 virtual void WebKitInitialized() OVERRIDE; |
| 40 | 41 |
| 41 void OnSetIsIncognitoProcess(bool is_incognito_process); | 42 void OnSetIsIncognitoProcess(bool is_incognito_process); |
| 42 void OnSetContentSettingsForCurrentURL( | 43 void OnSetContentSettingsForCurrentURL( |
| 43 const GURL& url, const ContentSettings& content_settings); | 44 const GURL& url, const ContentSettings& content_settings); |
| 44 void OnSetDefaultContentSettings(const ContentSettings& content_settings); | 45 void OnSetDefaultContentSettings(const ContentSettings& content_settings); |
| 46 void OnSetImageSettings(const ContentSettingRules& rules); |
| 45 void OnSetCacheCapacities(size_t min_dead_capacity, | 47 void OnSetCacheCapacities(size_t min_dead_capacity, |
| 46 size_t max_dead_capacity, | 48 size_t max_dead_capacity, |
| 47 size_t capacity); | 49 size_t capacity); |
| 48 void OnClearCache(); | 50 void OnClearCache(); |
| 49 void OnGetCacheResourceStats(); | 51 void OnGetCacheResourceStats(); |
| 50 void OnSetFieldTrialGroup(const std::string& fiel_trial_name, | 52 void OnSetFieldTrialGroup(const std::string& fiel_trial_name, |
| 51 const std::string& group_name); | 53 const std::string& group_name); |
| 52 void OnGetRendererTcmalloc(); | 54 void OnGetRendererTcmalloc(); |
| 53 void OnSetTcmallocHeapProfiling(bool profiling, const std::string& prefix); | 55 void OnSetTcmallocHeapProfiling(bool profiling, const std::string& prefix); |
| 54 void OnWriteTcmallocHeapProfile(const FilePath::StringType& filename); | 56 void OnWriteTcmallocHeapProfile(const FilePath::StringType& filename); |
| 55 void OnGetV8HeapStats(); | 57 void OnGetV8HeapStats(); |
| 56 void OnPurgeMemory(); | 58 void OnPurgeMemory(); |
| 57 | 59 |
| 58 static bool is_incognito_process_; | 60 static bool is_incognito_process_; |
| 59 scoped_ptr<ResourceDispatcherDelegate> resource_delegate_; | 61 scoped_ptr<ResourceDispatcherDelegate> resource_delegate_; |
| 60 chrome::ChromeContentRendererClient* client_; | 62 chrome::ChromeContentRendererClient* client_; |
| 61 | 63 |
| 62 DISALLOW_COPY_AND_ASSIGN(ChromeRenderProcessObserver); | 64 DISALLOW_COPY_AND_ASSIGN(ChromeRenderProcessObserver); |
| 63 }; | 65 }; |
| 64 | 66 |
| 65 #endif // CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_ | 67 #endif // CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_ |
| OLD | NEW |