| 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_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 : v8_memory_allocated_(v8_memory_allocated), | 45 : v8_memory_allocated_(v8_memory_allocated), |
| 46 v8_memory_used_(v8_memory_used) {} | 46 v8_memory_used_(v8_memory_used) {} |
| 47 size_t v8_memory_allocated() const { return v8_memory_allocated_; } | 47 size_t v8_memory_allocated() const { return v8_memory_allocated_; } |
| 48 size_t v8_memory_used() const { return v8_memory_used_; } | 48 size_t v8_memory_used() const { return v8_memory_used_; } |
| 49 private: | 49 private: |
| 50 size_t v8_memory_allocated_; | 50 size_t v8_memory_allocated_; |
| 51 size_t v8_memory_used_; | 51 size_t v8_memory_used_; |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 // content::BrowserMessageFilter methods: | 54 // content::BrowserMessageFilter methods: |
| 55 virtual bool OnMessageReceived(const IPC::Message& message, | 55 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 56 bool* message_was_ok) OVERRIDE; | |
| 57 virtual void OverrideThreadForMessage( | 56 virtual void OverrideThreadForMessage( |
| 58 const IPC::Message& message, | 57 const IPC::Message& message, |
| 59 content::BrowserThread::ID* thread) OVERRIDE; | 58 content::BrowserThread::ID* thread) OVERRIDE; |
| 60 | 59 |
| 61 int render_process_id() { return render_process_id_; } | 60 int render_process_id() { return render_process_id_; } |
| 62 bool off_the_record() { return off_the_record_; } | 61 bool off_the_record() { return off_the_record_; } |
| 63 net::HostResolver* GetHostResolver(); | 62 net::HostResolver* GetHostResolver(); |
| 64 | 63 |
| 65 private: | 64 private: |
| 66 friend class content::BrowserThread; | 65 friend class content::BrowserThread; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 chrome_browser_net::Predictor* predictor_; | 161 chrome_browser_net::Predictor* predictor_; |
| 163 scoped_refptr<net::URLRequestContextGetter> request_context_; | 162 scoped_refptr<net::URLRequestContextGetter> request_context_; |
| 164 scoped_refptr<extensions::InfoMap> extension_info_map_; | 163 scoped_refptr<extensions::InfoMap> extension_info_map_; |
| 165 // Used to look up permissions at database creation time. | 164 // Used to look up permissions at database creation time. |
| 166 scoped_refptr<CookieSettings> cookie_settings_; | 165 scoped_refptr<CookieSettings> cookie_settings_; |
| 167 | 166 |
| 168 DISALLOW_COPY_AND_ASSIGN(ChromeRenderMessageFilter); | 167 DISALLOW_COPY_AND_ASSIGN(ChromeRenderMessageFilter); |
| 169 }; | 168 }; |
| 170 | 169 |
| 171 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ | 170 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ |
| OLD | NEW |