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_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ |
6 #define CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ | 6 #define CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 net::URLRequestContext* request_context, | 72 net::URLRequestContext* request_context, |
73 fileapi::FileSystemContext* file_system_context, | 73 fileapi::FileSystemContext* file_system_context, |
74 ChromeBlobStorageContext* blob_storage_context, | 74 ChromeBlobStorageContext* blob_storage_context, |
75 StreamContext* stream_context); | 75 StreamContext* stream_context); |
76 | 76 |
77 // BrowserMessageFilter implementation. | 77 // BrowserMessageFilter implementation. |
78 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 78 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
79 virtual void OnChannelClosing() OVERRIDE; | 79 virtual void OnChannelClosing() OVERRIDE; |
80 virtual base::TaskRunner* OverrideTaskRunnerForMessage( | 80 virtual base::TaskRunner* OverrideTaskRunnerForMessage( |
81 const IPC::Message& message) OVERRIDE; | 81 const IPC::Message& message) OVERRIDE; |
82 virtual bool OnMessageReceived(const IPC::Message& message, | 82 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
83 bool* message_was_ok) OVERRIDE; | |
84 | 83 |
85 protected: | 84 protected: |
86 virtual ~FileAPIMessageFilter(); | 85 virtual ~FileAPIMessageFilter(); |
87 | 86 |
88 virtual void BadMessageReceived() OVERRIDE; | 87 virtual void BadMessageReceived() OVERRIDE; |
89 | 88 |
90 private: | 89 private: |
91 typedef fileapi::FileSystemOperationRunner::OperationID OperationID; | 90 typedef fileapi::FileSystemOperationRunner::OperationID OperationID; |
92 | 91 |
93 void OnOpenFileSystem(int request_id, | 92 void OnOpenFileSystem(int request_id, |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 // is being sent to the renderer. | 240 // is being sent to the renderer. |
242 std::map<int, scoped_refptr<webkit_blob::ShareableFileReference> > | 241 std::map<int, scoped_refptr<webkit_blob::ShareableFileReference> > |
243 in_transit_snapshot_files_; | 242 in_transit_snapshot_files_; |
244 | 243 |
245 DISALLOW_COPY_AND_ASSIGN(FileAPIMessageFilter); | 244 DISALLOW_COPY_AND_ASSIGN(FileAPIMessageFilter); |
246 }; | 245 }; |
247 | 246 |
248 } // namespace content | 247 } // namespace content |
249 | 248 |
250 #endif // CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ | 249 #endif // CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ |
OLD | NEW |