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

Side by Side Diff: content/browser/devtools/protocol/storage_handler.cc

Issue 2590293003: [DevTools] Rework DevToolsSession interaction with domain handlers. (Closed)
Patch Set: Created 3 years, 12 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
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698