OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/browser/devtools/protocol/storage_handler.h" | 5 #include "content/browser/devtools/protocol/storage_handler.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <unordered_set> | 8 #include <unordered_set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 static const char kIndexedDB[] = "indexeddb"; | 23 static const char kIndexedDB[] = "indexeddb"; |
24 static const char kLocalStorage[] = "local_storage"; | 24 static const char kLocalStorage[] = "local_storage"; |
25 static const char kShaderCache[] = "shader_cache"; | 25 static const char kShaderCache[] = "shader_cache"; |
26 static const char kWebSQL[] = "websql"; | 26 static const char kWebSQL[] = "websql"; |
27 static const char kServiceWorkers[] = "service_workers"; | 27 static const char kServiceWorkers[] = "service_workers"; |
28 static const char kCacheStorage[] = "cache_storage"; | 28 static const char kCacheStorage[] = "cache_storage"; |
29 static const char kAll[] = "all"; | 29 static const char kAll[] = "all"; |
30 } | 30 } |
31 | 31 |
32 StorageHandler::StorageHandler() | 32 StorageHandler::StorageHandler() |
33 : host_(nullptr) { | 33 : DevToolsDomainHandler(Storage::Metainfo::domainName), |
| 34 host_(nullptr) { |
34 } | 35 } |
35 | 36 |
36 StorageHandler::~StorageHandler() = default; | 37 StorageHandler::~StorageHandler() = default; |
37 | 38 |
38 void StorageHandler::Wire(UberDispatcher* dispatcher) { | 39 void StorageHandler::Wire(UberDispatcher* dispatcher) { |
39 Storage::Dispatcher::wire(dispatcher, this); | 40 Storage::Dispatcher::wire(dispatcher, this); |
40 } | 41 } |
41 | 42 |
42 void StorageHandler::SetRenderFrameHost(RenderFrameHostImpl* host) { | 43 void StorageHandler::SetRenderFrameHost(RenderFrameHostImpl* host) { |
43 host_ = host; | 44 host_ = host; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 remove_mask, | 87 remove_mask, |
87 StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL, | 88 StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL, |
88 GURL(origin), | 89 GURL(origin), |
89 partition->GetURLRequestContext(), | 90 partition->GetURLRequestContext(), |
90 base::Bind(&base::DoNothing)); | 91 base::Bind(&base::DoNothing)); |
91 return Response::OK(); | 92 return Response::OK(); |
92 } | 93 } |
93 | 94 |
94 } // namespace protocol | 95 } // namespace protocol |
95 } // namespace content | 96 } // namespace content |
OLD | NEW |