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 CONTENT_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_ |
6 #define CONTENT_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 public: | 37 public: |
38 // Used by the renderer. | 38 // Used by the renderer. |
39 explicit FileSystemDispatcherHost( | 39 explicit FileSystemDispatcherHost( |
40 const content::ResourceContext* resource_context); | 40 const content::ResourceContext* resource_context); |
41 // Used by the worker, since it has the context handy already. | 41 // Used by the worker, since it has the context handy already. |
42 FileSystemDispatcherHost(net::URLRequestContext* request_context, | 42 FileSystemDispatcherHost(net::URLRequestContext* request_context, |
43 fileapi::FileSystemContext* file_system_context); | 43 fileapi::FileSystemContext* file_system_context); |
44 virtual ~FileSystemDispatcherHost(); | 44 virtual ~FileSystemDispatcherHost(); |
45 | 45 |
46 // BrowserMessageFilter implementation. | 46 // BrowserMessageFilter implementation. |
47 virtual void OnChannelConnected(int32 peer_pid); | 47 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
48 virtual bool OnMessageReceived(const IPC::Message& message, | 48 virtual bool OnMessageReceived(const IPC::Message& message, |
49 bool* message_was_ok); | 49 bool* message_was_ok) OVERRIDE; |
50 | 50 |
51 void UnregisterOperation(int request_id); | 51 void UnregisterOperation(int request_id); |
52 | 52 |
53 private: | 53 private: |
54 void OnOpen(int request_id, | 54 void OnOpen(int request_id, |
55 const GURL& origin_url, | 55 const GURL& origin_url, |
56 fileapi::FileSystemType type, | 56 fileapi::FileSystemType type, |
57 int64 requested_size, | 57 int64 requested_size, |
58 bool create); | 58 bool create); |
59 void OnMove(int request_id, | 59 void OnMove(int request_id, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 96 |
97 // This holds the ResourceContext until Init() can be called from the | 97 // This holds the ResourceContext until Init() can be called from the |
98 // IO thread, which will extract the net::URLRequestContext from it. | 98 // IO thread, which will extract the net::URLRequestContext from it. |
99 const content::ResourceContext* resource_context_; | 99 const content::ResourceContext* resource_context_; |
100 net::URLRequestContext* request_context_; | 100 net::URLRequestContext* request_context_; |
101 | 101 |
102 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcherHost); | 102 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcherHost); |
103 }; | 103 }; |
104 | 104 |
105 #endif // CONTENT_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_ | 105 #endif // CONTENT_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_ |
OLD | NEW |