| 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 27 matching lines...) Expand all Loading... |
| 38 : v8_memory_allocated_(v8_memory_allocated), | 38 : v8_memory_allocated_(v8_memory_allocated), |
| 39 v8_memory_used_(v8_memory_used) {} | 39 v8_memory_used_(v8_memory_used) {} |
| 40 size_t v8_memory_allocated() const { return v8_memory_allocated_; } | 40 size_t v8_memory_allocated() const { return v8_memory_allocated_; } |
| 41 size_t v8_memory_used() const { return v8_memory_used_; } | 41 size_t v8_memory_used() const { return v8_memory_used_; } |
| 42 private: | 42 private: |
| 43 size_t v8_memory_allocated_; | 43 size_t v8_memory_allocated_; |
| 44 size_t v8_memory_used_; | 44 size_t v8_memory_used_; |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 // content::BrowserMessageFilter methods: | 47 // content::BrowserMessageFilter methods: |
| 48 virtual bool OnMessageReceived(const IPC::Message& message) override; | 48 bool OnMessageReceived(const IPC::Message& message) override; |
| 49 virtual void OverrideThreadForMessage( | 49 void OverrideThreadForMessage(const IPC::Message& message, |
| 50 const IPC::Message& message, | 50 content::BrowserThread::ID* thread) override; |
| 51 content::BrowserThread::ID* thread) override; | |
| 52 | 51 |
| 53 private: | 52 private: |
| 54 friend class content::BrowserThread; | 53 friend class content::BrowserThread; |
| 55 friend class base::DeleteHelper<ChromeRenderMessageFilter>; | 54 friend class base::DeleteHelper<ChromeRenderMessageFilter>; |
| 56 | 55 |
| 57 virtual ~ChromeRenderMessageFilter(); | 56 ~ChromeRenderMessageFilter() override; |
| 58 | 57 |
| 59 void OnDnsPrefetch(const std::vector<std::string>& hostnames); | 58 void OnDnsPrefetch(const std::vector<std::string>& hostnames); |
| 60 void OnPreconnect(const GURL& url); | 59 void OnPreconnect(const GURL& url); |
| 61 void OnResourceTypeStats(const blink::WebCache::ResourceTypeStats& stats); | 60 void OnResourceTypeStats(const blink::WebCache::ResourceTypeStats& stats); |
| 62 void OnUpdatedCacheStats(const blink::WebCache::UsageStats& stats); | 61 void OnUpdatedCacheStats(const blink::WebCache::UsageStats& stats); |
| 63 void OnV8HeapStats(int v8_memory_allocated, int v8_memory_used); | 62 void OnV8HeapStats(int v8_memory_allocated, int v8_memory_used); |
| 64 | 63 |
| 65 void OnAllowDatabase(int render_frame_id, | 64 void OnAllowDatabase(int render_frame_id, |
| 66 const GURL& origin_url, | 65 const GURL& origin_url, |
| 67 const GURL& top_origin_url, | 66 const GURL& top_origin_url, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 // used on the IO thread. | 127 // used on the IO thread. |
| 129 chrome_browser_net::Predictor* predictor_; | 128 chrome_browser_net::Predictor* predictor_; |
| 130 | 129 |
| 131 // Used to look up permissions at database creation time. | 130 // Used to look up permissions at database creation time. |
| 132 scoped_refptr<CookieSettings> cookie_settings_; | 131 scoped_refptr<CookieSettings> cookie_settings_; |
| 133 | 132 |
| 134 DISALLOW_COPY_AND_ASSIGN(ChromeRenderMessageFilter); | 133 DISALLOW_COPY_AND_ASSIGN(ChromeRenderMessageFilter); |
| 135 }; | 134 }; |
| 136 | 135 |
| 137 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ | 136 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ |
| OLD | NEW |