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

Side by Side Diff: content/browser/renderer_host/quota_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_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "content/browser/browser_message_filter.h" 10 #include "content/public/browser/browser_message_filter.h"
11 #include "webkit/quota/quota_types.h" 11 #include "webkit/quota/quota_types.h"
12 12
13 class GURL; 13 class GURL;
14 14
15 namespace IPC { 15 namespace IPC {
16 class Message; 16 class Message;
17 } 17 }
18 18
19 namespace quota { 19 namespace quota {
20 class QuotaManager; 20 class QuotaManager;
21 } 21 }
22 22
23 class QuotaPermissionContext; 23 class QuotaPermissionContext;
24 24
25 class QuotaDispatcherHost : public BrowserMessageFilter { 25 class QuotaDispatcherHost : public content::BrowserMessageFilter {
26 public: 26 public:
27 QuotaDispatcherHost(int process_id, 27 QuotaDispatcherHost(int process_id,
28 quota::QuotaManager* quota_manager, 28 quota::QuotaManager* quota_manager,
29 QuotaPermissionContext* permission_context); 29 QuotaPermissionContext* permission_context);
30 virtual ~QuotaDispatcherHost(); 30 virtual ~QuotaDispatcherHost();
31 virtual bool OnMessageReceived(const IPC::Message& message, 31 virtual bool OnMessageReceived(const IPC::Message& message,
32 bool* message_was_ok) OVERRIDE; 32 bool* message_was_ok) OVERRIDE;
33 33
34 private: 34 private:
35 class RequestDispatcher; 35 class RequestDispatcher;
(...skipping 16 matching lines...) Expand all
52 52
53 quota::QuotaManager* quota_manager_; 53 quota::QuotaManager* quota_manager_;
54 scoped_refptr<QuotaPermissionContext> permission_context_; 54 scoped_refptr<QuotaPermissionContext> permission_context_;
55 55
56 IDMap<RequestDispatcher, IDMapOwnPointer> outstanding_requests_; 56 IDMap<RequestDispatcher, IDMapOwnPointer> outstanding_requests_;
57 57
58 DISALLOW_IMPLICIT_CONSTRUCTORS(QuotaDispatcherHost); 58 DISALLOW_IMPLICIT_CONSTRUCTORS(QuotaDispatcherHost);
59 }; 59 };
60 60
61 #endif // CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_ 61 #endif // CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698