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

Side by Side Diff: extensions/browser/api/web_request/web_request_event_details.h

Issue 2335133003: PlzNavigate: support the WebRequest API (Closed)
Patch Set: Rebase + addressed nit Created 4 years, 2 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 #ifndef EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_DETAILS_H_ 5 #ifndef EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_DETAILS_H_
6 #define EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_DETAILS_H_ 6 #define EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_DETAILS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 } 81 }
82 82
83 void SetInteger(const std::string& key, int value) { 83 void SetInteger(const std::string& key, int value) {
84 dict_.SetInteger(key, value); 84 dict_.SetInteger(key, value);
85 } 85 }
86 86
87 void SetString(const std::string& key, const std::string& value) { 87 void SetString(const std::string& key, const std::string& value) {
88 dict_.SetString(key, value); 88 dict_.SetString(key, value);
89 } 89 }
90 90
91 // Sets the following keys using the value provided.
92 // - tabId
93 // - frameId
94 // - parentFrameId
95 void SetFrameData(const ExtensionApiFrameIdMap::FrameData& frame_data);
96
91 // Sets the following keys using information from constructor. 97 // Sets the following keys using information from constructor.
92 // - tabId 98 // - tabId
93 // - frameId 99 // - frameId
94 // - parentFrameId 100 // - parentFrameId
95 // This must be called from the UI thread. 101 // This must be called from the UI thread.
96 void DetermineFrameDataOnUI(); 102 void DetermineFrameDataOnUI();
97 103
98 // Sets the following keys using information from constructor. 104 // Sets the following keys using information from constructor.
99 // - tabId 105 // - tabId
100 // - frameId 106 // - frameId
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // Used to determine the tabId, frameId and parentFrameId. 145 // Used to determine the tabId, frameId and parentFrameId.
140 int render_process_id_; 146 int render_process_id_;
141 int render_frame_id_; 147 int render_frame_id_;
142 148
143 DISALLOW_COPY_AND_ASSIGN(WebRequestEventDetails); 149 DISALLOW_COPY_AND_ASSIGN(WebRequestEventDetails);
144 }; 150 };
145 151
146 } // namespace extensions 152 } // namespace extensions
147 153
148 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_DETAILS_H_ 154 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_DETAILS_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/web_request/web_request_api.cc ('k') | extensions/browser/api/web_request/web_request_event_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698