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 CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 class GURL; | 48 class GURL; |
49 struct FontDescriptor; | 49 struct FontDescriptor; |
50 | 50 |
51 namespace media { | 51 namespace media { |
52 struct MediaLogEvent; | 52 struct MediaLogEvent; |
53 } | 53 } |
54 | 54 |
55 namespace net { | 55 namespace net { |
56 class IOBuffer; | 56 class IOBuffer; |
57 class KeygenHandler; | |
58 class URLRequestContextGetter; | 57 class URLRequestContextGetter; |
59 } | 58 } |
60 | 59 |
61 namespace url { | 60 namespace url { |
62 class Origin; | 61 class Origin; |
63 } | 62 } |
64 | 63 |
65 namespace content { | 64 namespace content { |
66 class BrowserContext; | 65 class BrowserContext; |
67 class CacheStorageContextImpl; | 66 class CacheStorageContextImpl; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 const std::vector<char>& data, | 148 const std::vector<char>& data, |
150 const url::Origin& cache_storage_origin, | 149 const url::Origin& cache_storage_origin, |
151 const std::string& cache_storage_cache_name); | 150 const std::string& cache_storage_cache_name); |
152 void OnCacheStorageOpenCallback( | 151 void OnCacheStorageOpenCallback( |
153 const GURL& url, | 152 const GURL& url, |
154 base::Time expected_response_time, | 153 base::Time expected_response_time, |
155 scoped_refptr<net::IOBuffer> buf, | 154 scoped_refptr<net::IOBuffer> buf, |
156 int buf_len, | 155 int buf_len, |
157 std::unique_ptr<CacheStorageCacheHandle> cache_handle, | 156 std::unique_ptr<CacheStorageCacheHandle> cache_handle, |
158 CacheStorageError error); | 157 CacheStorageError error); |
159 void OnKeygen(uint32_t key_size_index, | |
160 const std::string& challenge_string, | |
161 const GURL& url, | |
162 const GURL& top_origin, | |
163 IPC::Message* reply_msg); | |
164 void PostKeygenToWorkerThread( | |
165 IPC::Message* reply_msg, | |
166 std::unique_ptr<net::KeygenHandler> keygen_handler); | |
167 void OnKeygenOnWorkerThread( | |
168 std::unique_ptr<net::KeygenHandler> keygen_handler, | |
169 IPC::Message* reply_msg); | |
170 void OnMediaLogEvents(const std::vector<media::MediaLogEvent>&); | 158 void OnMediaLogEvents(const std::vector<media::MediaLogEvent>&); |
171 | 159 |
172 bool CheckBenchmarkingEnabled() const; | 160 bool CheckBenchmarkingEnabled() const; |
173 bool CheckPreparsedJsCachingEnabled() const; | 161 bool CheckPreparsedJsCachingEnabled() const; |
174 | 162 |
175 // Cached resource request dispatcher host, guaranteed to be non-null. We do | 163 // Cached resource request dispatcher host, guaranteed to be non-null. We do |
176 // not own it; it is managed by the BrowserProcess, which has a wider scope | 164 // not own it; it is managed by the BrowserProcess, which has a wider scope |
177 // than we do. | 165 // than we do. |
178 ResourceDispatcherHostImpl* resource_dispatcher_host_; | 166 ResourceDispatcherHostImpl* resource_dispatcher_host_; |
179 | 167 |
(...skipping 15 matching lines...) Expand all Loading... |
195 CacheStorageContextImpl* cache_storage_context_; | 183 CacheStorageContextImpl* cache_storage_context_; |
196 | 184 |
197 base::WeakPtrFactory<RenderMessageFilter> weak_ptr_factory_; | 185 base::WeakPtrFactory<RenderMessageFilter> weak_ptr_factory_; |
198 | 186 |
199 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter); | 187 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter); |
200 }; | 188 }; |
201 | 189 |
202 } // namespace content | 190 } // namespace content |
203 | 191 |
204 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ | 192 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ |
OLD | NEW |