| 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 12 matching lines...) Expand all Loading... |
| 23 class ChromeRenderProcessObserver : public RenderProcessObserver { | 23 class ChromeRenderProcessObserver : public RenderProcessObserver { |
| 24 public: | 24 public: |
| 25 ChromeRenderProcessObserver(); | 25 ChromeRenderProcessObserver(); |
| 26 virtual ~ChromeRenderProcessObserver(); | 26 virtual ~ChromeRenderProcessObserver(); |
| 27 | 27 |
| 28 static bool is_incognito_process() { return is_incognito_process_; } | 28 static bool is_incognito_process() { return is_incognito_process_; } |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 // RenderProcessObserver implementation. | 31 // RenderProcessObserver implementation. |
| 32 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; | 32 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; |
| 33 virtual void WebKitInitialized() OVERRIDE; |
| 33 | 34 |
| 34 void OnSetIsIncognitoProcess(bool is_incognito_process); | 35 void OnSetIsIncognitoProcess(bool is_incognito_process); |
| 35 void OnSetContentSettingsForCurrentURL( | 36 void OnSetContentSettingsForCurrentURL( |
| 36 const GURL& url, const ContentSettings& content_settings); | 37 const GURL& url, const ContentSettings& content_settings); |
| 37 void OnSetCacheCapacities(size_t min_dead_capacity, | 38 void OnSetCacheCapacities(size_t min_dead_capacity, |
| 38 size_t max_dead_capacity, | 39 size_t max_dead_capacity, |
| 39 size_t capacity); | 40 size_t capacity); |
| 40 void OnClearCache(); | 41 void OnClearCache(); |
| 41 void OnGetCacheResourceStats(); | 42 void OnGetCacheResourceStats(); |
| 42 void OnSetFieldTrialGroup(const std::string& fiel_trial_name, | 43 void OnSetFieldTrialGroup(const std::string& fiel_trial_name, |
| 43 const std::string& group_name); | 44 const std::string& group_name); |
| 44 void OnGetRendererTcmalloc(); | 45 void OnGetRendererTcmalloc(); |
| 45 void OnGetV8HeapStats(); | 46 void OnGetV8HeapStats(); |
| 46 void OnPurgeMemory(); | 47 void OnPurgeMemory(); |
| 47 | 48 |
| 48 static bool is_incognito_process_; | 49 static bool is_incognito_process_; |
| 49 scoped_ptr<ResourceDispatcherDelegate> resource_delegate_; | 50 scoped_ptr<ResourceDispatcherDelegate> resource_delegate_; |
| 50 | 51 |
| 51 DISALLOW_COPY_AND_ASSIGN(ChromeRenderProcessObserver); | 52 DISALLOW_COPY_AND_ASSIGN(ChromeRenderProcessObserver); |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 #endif // CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_ | 55 #endif // CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_ |
| OLD | NEW |