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

Side by Side Diff: third_party/WebKit/Source/modules/storage/InspectorDOMStorageAgent.h

Issue 2463673004: [inspector_protocol] Support fall through. (Closed)
Patch Set: example domain converted Created 4 years, 1 month 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 StorageType, 62 StorageType,
63 SecurityOrigin*); 63 SecurityOrigin*);
64 64
65 private: 65 private:
66 explicit InspectorDOMStorageAgent(Page*); 66 explicit InspectorDOMStorageAgent(Page*);
67 67
68 // InspectorBaseAgent overrides. 68 // InspectorBaseAgent overrides.
69 void restore() override; 69 void restore() override;
70 70
71 // protocol::Dispatcher::DOMStorageCommandHandler overrides. 71 // protocol::Dispatcher::DOMStorageCommandHandler overrides.
72 void enable(ErrorString*) override; 72 Response enable() override;
73 void disable(ErrorString*) override; 73 Response disable() override;
74 void getDOMStorageItems( 74 Response getDOMStorageItems(
75 ErrorString*,
76 std::unique_ptr<protocol::DOMStorage::StorageId> in_storageId, 75 std::unique_ptr<protocol::DOMStorage::StorageId> in_storageId,
77 std::unique_ptr<protocol::Array<protocol::Array<String>>>* out_entries) 76 std::unique_ptr<protocol::Array<protocol::Array<String>>>* out_entries)
78 override; 77 override;
79 void setDOMStorageItem( 78 Response setDOMStorageItem(
80 ErrorString*,
81 std::unique_ptr<protocol::DOMStorage::StorageId> in_storageId, 79 std::unique_ptr<protocol::DOMStorage::StorageId> in_storageId,
82 const String& in_key, 80 const String& in_key,
83 const String& in_value) override; 81 const String& in_value) override;
84 void removeDOMStorageItem( 82 Response removeDOMStorageItem(
85 ErrorString*,
86 std::unique_ptr<protocol::DOMStorage::StorageId> in_storageId, 83 std::unique_ptr<protocol::DOMStorage::StorageId> in_storageId,
87 const String& in_key) override; 84 const String& in_key) override;
88 85
89 StorageArea* findStorageArea(ErrorString*, 86 Response findStorageArea(std::unique_ptr<protocol::DOMStorage::StorageId>,
90 std::unique_ptr<protocol::DOMStorage::StorageId>, 87 LocalFrame*&,
91 LocalFrame*&); 88 StorageArea*&);
92 std::unique_ptr<protocol::DOMStorage::StorageId> storageId( 89 std::unique_ptr<protocol::DOMStorage::StorageId> storageId(
93 SecurityOrigin*, 90 SecurityOrigin*,
94 bool isLocalStorage); 91 bool isLocalStorage);
95 92
96 Member<Page> m_page; 93 Member<Page> m_page;
97 bool m_isEnabled; 94 bool m_isEnabled;
98 }; 95 };
99 96
100 } // namespace blink 97 } // namespace blink
101 98
102 #endif // !defined(InspectorDOMStorageAgent_h) 99 #endif // !defined(InspectorDOMStorageAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698