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

Side by Side Diff: third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.h

Issue 1767883002: DevTools: generate string16-based handlers for v8_inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing 2 Created 4 years, 9 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 22 matching lines...) Expand all
33 33
34 #include "core/inspector/InspectorBaseAgent.h" 34 #include "core/inspector/InspectorBaseAgent.h"
35 #include "modules/ModulesExport.h" 35 #include "modules/ModulesExport.h"
36 #include "wtf/PassOwnPtr.h" 36 #include "wtf/PassOwnPtr.h"
37 #include "wtf/text/WTFString.h" 37 #include "wtf/text/WTFString.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class InspectedFrames; 41 class InspectedFrames;
42 42
43 typedef String ErrorString;
44 43
45 class MODULES_EXPORT InspectorIndexedDBAgent final : public InspectorBaseAgent<I nspectorIndexedDBAgent, protocol::Frontend::IndexedDB>, public protocol::Dispatc her::IndexedDBCommandHandler { 44 class MODULES_EXPORT InspectorIndexedDBAgent final : public InspectorBaseAgent<I nspectorIndexedDBAgent, protocol::Frontend::IndexedDB>, public protocol::Dispatc her::IndexedDBCommandHandler {
46 public: 45 public:
47 static PassOwnPtrWillBeRawPtr<InspectorIndexedDBAgent> create(InspectedFrame s*); 46 static PassOwnPtrWillBeRawPtr<InspectorIndexedDBAgent> create(InspectedFrame s*);
48 47
49 ~InspectorIndexedDBAgent() override; 48 ~InspectorIndexedDBAgent() override;
50 DECLARE_VIRTUAL_TRACE(); 49 DECLARE_VIRTUAL_TRACE();
51 50
52 void restore() override; 51 void restore() override;
53 52
54 // Called from the front-end. 53 // Called from the front-end.
55 void enable(ErrorString*) override; 54 void enable(ErrorString*) override;
56 void disable(ErrorString*) override; 55 void disable(ErrorString*) override;
57 void requestDatabaseNames(ErrorString*, const String& securityOrigin, PassOw nPtr<RequestDatabaseNamesCallback>) override; 56 void requestDatabaseNames(ErrorString*, const String& securityOrigin, PassOw nPtr<RequestDatabaseNamesCallback>) override;
58 void requestDatabase(ErrorString*, const String& securityOrigin, const Strin g& databaseName, PassOwnPtr<RequestDatabaseCallback>) override; 57 void requestDatabase(ErrorString*, const String& securityOrigin, const Strin g& databaseName, PassOwnPtr<RequestDatabaseCallback>) override;
59 void requestData(ErrorString*, const String& securityOrigin, const String& d atabaseName, const String& objectStoreName, const String& indexName, int skipCou nt, int pageSize, const Maybe<protocol::IndexedDB::KeyRange>&, PassOwnPtr<Reques tDataCallback>) override; 58 void requestData(ErrorString*, const String& securityOrigin, const String& d atabaseName, const String& objectStoreName, const String& indexName, int skipCou nt, int pageSize, const Maybe<protocol::IndexedDB::KeyRange>&, PassOwnPtr<Reques tDataCallback>) override;
60 void clearObjectStore(ErrorString*, const String& securityOrigin, const Stri ng& databaseName, const String& objectStoreName, PassOwnPtr<ClearObjectStoreCall back>) override; 59 void clearObjectStore(ErrorString*, const String& securityOrigin, const Stri ng& databaseName, const String& objectStoreName, PassOwnPtr<ClearObjectStoreCall back>) override;
61 60
62 private: 61 private:
63 explicit InspectorIndexedDBAgent(InspectedFrames*); 62 explicit InspectorIndexedDBAgent(InspectedFrames*);
64 63
65 RawPtrWillBeMember<InspectedFrames> m_inspectedFrames; 64 RawPtrWillBeMember<InspectedFrames> m_inspectedFrames;
66 }; 65 };
67 66
68 } // namespace blink 67 } // namespace blink
69 68
70 #endif // !defined(InspectorIndexedDBAgent_h) 69 #endif // !defined(InspectorIndexedDBAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698