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

Side by Side Diff: content/common/quota_dispatcher.cc

Issue 11227033: Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 2 months 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
« no previous file with comments | « content/common/quota_dispatcher.h ('k') | content/common/socket_stream_dispatcher.h » ('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 #include "content/common/quota_dispatcher.h" 5 #include "content/common/quota_dispatcher.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "content/common/child_thread.h" 8 #include "content/common/child_thread.h"
9 #include "content/common/quota_messages.h" 9 #include "content/common/quota_messages.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaCallba cks.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaCallba cks.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaType.h " 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaType.h "
13 13
14 using quota::QuotaStatusCode; 14 using quota::QuotaStatusCode;
15 using quota::StorageType; 15 using quota::StorageType;
16 16
17 using WebKit::WebStorageQuotaCallbacks; 17 using WebKit::WebStorageQuotaCallbacks;
18 using WebKit::WebStorageQuotaError; 18 using WebKit::WebStorageQuotaError;
19 using WebKit::WebStorageQuotaType; 19 using WebKit::WebStorageQuotaType;
20 20
21 namespace content {
21 namespace { 22 namespace {
22 23
23 // QuotaDispatcher::Callback implementation for WebStorageQuotaCallbacks. 24 // QuotaDispatcher::Callback implementation for WebStorageQuotaCallbacks.
24 class WebStorageQuotaDispatcherCallback : public QuotaDispatcher::Callback { 25 class WebStorageQuotaDispatcherCallback : public QuotaDispatcher::Callback {
25 public: 26 public:
26 WebStorageQuotaDispatcherCallback(WebKit::WebStorageQuotaCallbacks* callback) 27 WebStorageQuotaDispatcherCallback(WebKit::WebStorageQuotaCallbacks* callback)
27 : callbacks_(callback) { 28 : callbacks_(callback) {
28 DCHECK(callbacks_); 29 DCHECK(callbacks_);
29 } 30 }
30 virtual ~WebStorageQuotaDispatcherCallback() {} 31 virtual ~WebStorageQuotaDispatcherCallback() {}
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 129
129 COMPILE_ASSERT(int(WebKit::WebStorageQuotaTypeTemporary) == \ 130 COMPILE_ASSERT(int(WebKit::WebStorageQuotaTypeTemporary) == \
130 int(quota::kStorageTypeTemporary), mismatching_enums); 131 int(quota::kStorageTypeTemporary), mismatching_enums);
131 COMPILE_ASSERT(int(WebKit::WebStorageQuotaTypePersistent) == \ 132 COMPILE_ASSERT(int(WebKit::WebStorageQuotaTypePersistent) == \
132 int(quota::kStorageTypePersistent), mismatching_enums); 133 int(quota::kStorageTypePersistent), mismatching_enums);
133 134
134 COMPILE_ASSERT(int(WebKit::WebStorageQuotaErrorNotSupported) == \ 135 COMPILE_ASSERT(int(WebKit::WebStorageQuotaErrorNotSupported) == \
135 int(quota::kQuotaErrorNotSupported), mismatching_enums); 136 int(quota::kQuotaErrorNotSupported), mismatching_enums);
136 COMPILE_ASSERT(int(WebKit::WebStorageQuotaErrorAbort) == \ 137 COMPILE_ASSERT(int(WebKit::WebStorageQuotaErrorAbort) == \
137 int(quota::kQuotaErrorAbort), mismatching_enums); 138 int(quota::kQuotaErrorAbort), mismatching_enums);
139
140 } // namespace content
OLDNEW
« no previous file with comments | « content/common/quota_dispatcher.h ('k') | content/common/socket_stream_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698