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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "base/message_loop_helpers.h" |
14 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/common/content_settings.h" | 16 #include "chrome/common/content_settings.h" |
16 #include "content/public/browser/browser_message_filter.h" | 17 #include "content/public/browser/browser_message_filter.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" |
18 | 19 |
19 class CookieSettings; | 20 class CookieSettings; |
20 struct ExtensionHostMsg_Request_Params; | 21 struct ExtensionHostMsg_Request_Params; |
21 class ExtensionInfoMap; | 22 class ExtensionInfoMap; |
22 class GURL; | 23 class GURL; |
23 | 24 |
(...skipping 11 matching lines...) Expand all Loading... |
35 | 36 |
36 // content::BrowserMessageFilter methods: | 37 // content::BrowserMessageFilter methods: |
37 virtual bool OnMessageReceived(const IPC::Message& message, | 38 virtual bool OnMessageReceived(const IPC::Message& message, |
38 bool* message_was_ok) OVERRIDE; | 39 bool* message_was_ok) OVERRIDE; |
39 virtual void OverrideThreadForMessage( | 40 virtual void OverrideThreadForMessage( |
40 const IPC::Message& message, | 41 const IPC::Message& message, |
41 content::BrowserThread::ID* thread) OVERRIDE; | 42 content::BrowserThread::ID* thread) OVERRIDE; |
42 | 43 |
43 private: | 44 private: |
44 friend class content::BrowserThread; | 45 friend class content::BrowserThread; |
45 friend class DeleteTask<ChromeRenderMessageFilter>; | 46 friend class base::DeleteHelper<ChromeRenderMessageFilter>; |
46 | 47 |
47 virtual ~ChromeRenderMessageFilter(); | 48 virtual ~ChromeRenderMessageFilter(); |
48 | 49 |
49 #if !defined(DISABLE_NACL) | 50 #if !defined(DISABLE_NACL) |
50 void OnLaunchNaCl(const std::wstring& url, | 51 void OnLaunchNaCl(const std::wstring& url, |
51 int socket_count, | 52 int socket_count, |
52 IPC::Message* reply_msg); | 53 IPC::Message* reply_msg); |
53 #endif | 54 #endif |
54 void OnDnsPrefetch(const std::vector<std::string>& hostnames); | 55 void OnDnsPrefetch(const std::vector<std::string>& hostnames); |
55 void OnRendererHistograms(int sequence_number, | 56 void OnRendererHistograms(int sequence_number, |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 scoped_refptr<CookieSettings> cookie_settings_; | 139 scoped_refptr<CookieSettings> cookie_settings_; |
139 | 140 |
140 const content::ResourceContext& resource_context_; | 141 const content::ResourceContext& resource_context_; |
141 | 142 |
142 base::WeakPtrFactory<ChromeRenderMessageFilter> weak_ptr_factory_; | 143 base::WeakPtrFactory<ChromeRenderMessageFilter> weak_ptr_factory_; |
143 | 144 |
144 DISALLOW_COPY_AND_ASSIGN(ChromeRenderMessageFilter); | 145 DISALLOW_COPY_AND_ASSIGN(ChromeRenderMessageFilter); |
145 }; | 146 }; |
146 | 147 |
147 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ | 148 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ |
OLD | NEW |