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

Side by Side Diff: content/child/quota_dispatcher.h

Issue 2558673003: Move RequestQuotaPermission from RenderView to RenderFrame. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « chrome/browser/chrome_quota_permission_context.cc ('k') | content/child/quota_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CHILD_QUOTA_DISPATCHER_H_ 5 #ifndef CONTENT_CHILD_QUOTA_DISPATCHER_H_
6 #define CONTENT_CHILD_QUOTA_DISPATCHER_H_ 6 #define CONTENT_CHILD_QUOTA_DISPATCHER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 QuotaMessageFilter* quota_message_filter); 57 QuotaMessageFilter* quota_message_filter);
58 58
59 // WorkerThread::Observer implementation. 59 // WorkerThread::Observer implementation.
60 void WillStopCurrentWorkerThread() override; 60 void WillStopCurrentWorkerThread() override;
61 61
62 void OnMessageReceived(const IPC::Message& msg); 62 void OnMessageReceived(const IPC::Message& msg);
63 63
64 void QueryStorageUsageAndQuota(const GURL& gurl, 64 void QueryStorageUsageAndQuota(const GURL& gurl,
65 storage::StorageType type, 65 storage::StorageType type,
66 std::unique_ptr<Callback> callback); 66 std::unique_ptr<Callback> callback);
67 void RequestStorageQuota(int render_view_id, 67 void RequestStorageQuota(int render_frame_id,
68 const GURL& gurl, 68 const GURL& gurl,
69 storage::StorageType type, 69 storage::StorageType type,
70 uint64_t requested_size, 70 uint64_t requested_size,
71 std::unique_ptr<Callback> callback); 71 std::unique_ptr<Callback> callback);
72 72
73 // Creates a new Callback instance for WebStorageQuotaCallbacks. 73 // Creates a new Callback instance for WebStorageQuotaCallbacks.
74 static std::unique_ptr<Callback> CreateWebStorageQuotaCallbacksWrapper( 74 static std::unique_ptr<Callback> CreateWebStorageQuotaCallbacksWrapper(
75 blink::WebStorageQuotaCallbacks callbacks); 75 blink::WebStorageQuotaCallbacks callbacks);
76 76
77 private: 77 private:
(...skipping 10 matching lines...) Expand all
88 88
89 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 89 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
90 scoped_refptr<QuotaMessageFilter> quota_message_filter_; 90 scoped_refptr<QuotaMessageFilter> quota_message_filter_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(QuotaDispatcher); 92 DISALLOW_COPY_AND_ASSIGN(QuotaDispatcher);
93 }; 93 };
94 94
95 } // namespace content 95 } // namespace content
96 96
97 #endif // CONTENT_CHILD_QUOTA_DISPATCHER_H_ 97 #endif // CONTENT_CHILD_QUOTA_DISPATCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_quota_permission_context.cc ('k') | content/child/quota_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698