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

Unified Diff: third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp

Issue 1696513002: DevTools: move protocol-related generators into inspector subfolder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
diff --git a/third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp b/third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
index ce8e6cb702a8ac6b36056cc2febc19afd014cedf..1cf09b6f3d6d73387cb88ccd4d3958187402814f 100644
--- a/third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
+++ b/third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
@@ -4,10 +4,10 @@
#include "modules/cachestorage/InspectorCacheStorageAgent.h"
-#include "core/InspectorBackendDispatcher.h"
-#include "core/InspectorTypeBuilder.h"
#include "platform/JSONValues.h"
#include "platform/heap/Handle.h"
+#include "platform/inspector_protocol/Dispatcher.h"
+#include "platform/inspector_protocol/TypeBuilder.h"
#include "platform/weborigin/DatabaseIdentifier.h"
#include "platform/weborigin/KURL.h"
#include "platform/weborigin/SecurityOrigin.h"
@@ -31,15 +31,15 @@
#include <algorithm>
-using blink::TypeBuilder::Array;
-using blink::TypeBuilder::CacheStorage::Cache;
-using blink::TypeBuilder::CacheStorage::DataEntry;
+using blink::protocol::TypeBuilder::Array;
+using blink::protocol::TypeBuilder::CacheStorage::Cache;
+using blink::protocol::TypeBuilder::CacheStorage::DataEntry;
-typedef blink::InspectorBackendDispatcher::CacheStorageCommandHandler::DeleteCacheCallback DeleteCacheCallback;
-typedef blink::InspectorBackendDispatcher::CacheStorageCommandHandler::DeleteEntryCallback DeleteEntryCallback;
-typedef blink::InspectorBackendDispatcher::CacheStorageCommandHandler::RequestCacheNamesCallback RequestCacheNamesCallback;
-typedef blink::InspectorBackendDispatcher::CacheStorageCommandHandler::RequestEntriesCallback RequestEntriesCallback;
-typedef blink::InspectorBackendDispatcher::CallbackBase RequestCallback;
+typedef blink::protocol::Dispatcher::CacheStorageCommandHandler::DeleteCacheCallback DeleteCacheCallback;
+typedef blink::protocol::Dispatcher::CacheStorageCommandHandler::DeleteEntryCallback DeleteEntryCallback;
+typedef blink::protocol::Dispatcher::CacheStorageCommandHandler::RequestCacheNamesCallback RequestCacheNamesCallback;
+typedef blink::protocol::Dispatcher::CacheStorageCommandHandler::RequestEntriesCallback RequestEntriesCallback;
+typedef blink::protocol::Dispatcher::CallbackBase RequestCallback;
typedef blink::WebServiceWorkerCache::BatchOperation BatchOperation;
namespace blink {
@@ -399,7 +399,7 @@ private:
} // namespace
InspectorCacheStorageAgent::InspectorCacheStorageAgent()
- : InspectorBaseAgent<InspectorCacheStorageAgent, InspectorFrontend::CacheStorage>("CacheStorage")
+ : InspectorBaseAgent<InspectorCacheStorageAgent, protocol::Frontend::CacheStorage>("CacheStorage")
{
}
@@ -417,7 +417,7 @@ void InspectorCacheStorageAgent::requestCacheNames(ErrorString* errorString, con
// Cache Storage API is restricted to trustworthy origins.
if (!secOrigin->isPotentiallyTrustworthy()) {
// Don't treat this as an error, just don't attempt to open and enumerate the caches.
- callback->sendSuccess(Array<TypeBuilder::CacheStorage::Cache>::create());
+ callback->sendSuccess(Array<protocol::TypeBuilder::CacheStorage::Cache>::create());
return;
}

Powered by Google App Engine
This is Rietveld 408576698