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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 ChromeBlobStorageContext* blob_storage_context, | 66 ChromeBlobStorageContext* blob_storage_context, |
67 StreamContext* stream_context); | 67 StreamContext* stream_context); |
68 // Used by the worker process host on the IO thread. | 68 // Used by the worker process host on the IO thread. |
69 FileAPIMessageFilter(int process_id, | 69 FileAPIMessageFilter(int process_id, |
70 net::URLRequestContext* request_context, | 70 net::URLRequestContext* request_context, |
71 storage::FileSystemContext* file_system_context, | 71 storage::FileSystemContext* file_system_context, |
72 ChromeBlobStorageContext* blob_storage_context, | 72 ChromeBlobStorageContext* blob_storage_context, |
73 StreamContext* stream_context); | 73 StreamContext* stream_context); |
74 | 74 |
75 // BrowserMessageFilter implementation. | 75 // BrowserMessageFilter implementation. |
76 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 76 virtual void OnChannelConnected(int32 peer_pid) override; |
77 virtual void OnChannelClosing() OVERRIDE; | 77 virtual void OnChannelClosing() override; |
78 virtual base::TaskRunner* OverrideTaskRunnerForMessage( | 78 virtual base::TaskRunner* OverrideTaskRunnerForMessage( |
79 const IPC::Message& message) OVERRIDE; | 79 const IPC::Message& message) override; |
80 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 80 virtual bool OnMessageReceived(const IPC::Message& message) override; |
81 | 81 |
82 protected: | 82 protected: |
83 virtual ~FileAPIMessageFilter(); | 83 virtual ~FileAPIMessageFilter(); |
84 | 84 |
85 virtual void BadMessageReceived() OVERRIDE; | 85 virtual void BadMessageReceived() override; |
86 | 86 |
87 private: | 87 private: |
88 typedef storage::FileSystemOperationRunner::OperationID OperationID; | 88 typedef storage::FileSystemOperationRunner::OperationID OperationID; |
89 | 89 |
90 void OnOpenFileSystem(int request_id, | 90 void OnOpenFileSystem(int request_id, |
91 const GURL& origin_url, | 91 const GURL& origin_url, |
92 storage::FileSystemType type); | 92 storage::FileSystemType type); |
93 void OnResolveURL(int request_id, | 93 void OnResolveURL(int request_id, |
94 const GURL& filesystem_url); | 94 const GURL& filesystem_url); |
95 void OnDeleteFileSystem(int request_id, | 95 void OnDeleteFileSystem(int request_id, |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 // is being sent to the renderer. | 238 // is being sent to the renderer. |
239 std::map<int, scoped_refptr<storage::ShareableFileReference> > | 239 std::map<int, scoped_refptr<storage::ShareableFileReference> > |
240 in_transit_snapshot_files_; | 240 in_transit_snapshot_files_; |
241 | 241 |
242 DISALLOW_COPY_AND_ASSIGN(FileAPIMessageFilter); | 242 DISALLOW_COPY_AND_ASSIGN(FileAPIMessageFilter); |
243 }; | 243 }; |
244 | 244 |
245 } // namespace content | 245 } // namespace content |
246 | 246 |
247 #endif // CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ | 247 #endif // CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ |
OLD | NEW |