Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1415)

Side by Side Diff: content/browser/file_system/file_system_dispatcher_host.h

Issue 8912009: Move BrowserMessageFilter to public, and into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
11 #include "base/id_map.h" 11 #include "base/id_map.h"
12 #include "content/browser/browser_message_filter.h" 12 #include "content/public/browser/browser_message_filter.h"
13 #include "webkit/fileapi/file_system_types.h" 13 #include "webkit/fileapi/file_system_types.h"
14 14
15 class FilePath; 15 class FilePath;
16 class GURL; 16 class GURL;
17 17
18 namespace base { 18 namespace base {
19 class Time; 19 class Time;
20 } 20 }
21 21
22 namespace fileapi { 22 namespace fileapi {
23 class FileSystemContext; 23 class FileSystemContext;
24 class FileSystemOperation; 24 class FileSystemOperation;
25 } 25 }
26 26
27 namespace net { 27 namespace net {
28 class URLRequestContext; 28 class URLRequestContext;
29 class URLRequestContextGetter; 29 class URLRequestContextGetter;
30 } // namespace net 30 } // namespace net
31 31
32 class FileSystemDispatcherHost : public BrowserMessageFilter { 32 class FileSystemDispatcherHost : public content::BrowserMessageFilter {
33 public: 33 public:
34 // Used by the renderer process host on the UI thread. 34 // Used by the renderer process host on the UI thread.
35 FileSystemDispatcherHost( 35 FileSystemDispatcherHost(
36 net::URLRequestContextGetter* request_context_getter, 36 net::URLRequestContextGetter* request_context_getter,
37 fileapi::FileSystemContext* file_system_context); 37 fileapi::FileSystemContext* file_system_context);
38 // Used by the worker process host on the IO thread. 38 // Used by the worker process host on the IO thread.
39 FileSystemDispatcherHost( 39 FileSystemDispatcherHost(
40 net::URLRequestContext* request_context, 40 net::URLRequestContext* request_context,
41 fileapi::FileSystemContext* file_system_context); 41 fileapi::FileSystemContext* file_system_context);
42 virtual ~FileSystemDispatcherHost(); 42 virtual ~FileSystemDispatcherHost();
43 43
44 // BrowserMessageFilter implementation. 44 // content::BrowserMessageFilter implementation.
45 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; 45 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
46 virtual void OverrideThreadForMessage( 46 virtual void OverrideThreadForMessage(
47 const IPC::Message& message, 47 const IPC::Message& message,
48 content::BrowserThread::ID* thread) OVERRIDE; 48 content::BrowserThread::ID* thread) OVERRIDE;
49 virtual bool OnMessageReceived(const IPC::Message& message, 49 virtual bool OnMessageReceived(const IPC::Message& message,
50 bool* message_was_ok) OVERRIDE; 50 bool* message_was_ok) OVERRIDE;
51 51
52 void UnregisterOperation(int request_id); 52 void UnregisterOperation(int request_id);
53 53
54 private: 54 private:
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 // The getter holds the context until Init() can be called from the 100 // The getter holds the context until Init() can be called from the
101 // IO thread, which will extract the net::URLRequestContext from it. 101 // IO thread, which will extract the net::URLRequestContext from it.
102 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; 102 scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
103 net::URLRequestContext* request_context_; 103 net::URLRequestContext* request_context_;
104 104
105 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcherHost); 105 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcherHost);
106 }; 106 };
107 107
108 #endif // CONTENT_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_ 108 #endif // CONTENT_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698