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

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

Issue 2700553002: Introduce WebRequestResourceType. (Closed)
Patch Set: Make compiler happy; make type<->string mapping self-checking. Created 3 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 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
11 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "extensions/browser/extension_api_frame_id_map.h" 15 #include "extensions/browser/extension_api_frame_id_map.h"
16 16
17 namespace net { 17 namespace net {
18 class AuthChallengeInfo; 18 class AuthChallengeInfo;
19 class HttpRequestHeaders; 19 class HttpRequestHeaders;
20 class HttpResponseHeaders; 20 class HttpResponseHeaders;
21 class URLRequest; 21 class URLRequest;
22 } 22 } // namespace net
23 23
24 namespace extensions { 24 namespace extensions {
25 25
26 // This helper class is used to construct the details for a webRequest event 26 // This helper class is used to construct the details for a webRequest event
27 // dictionary. Some keys are present on every event, others are only relevant 27 // dictionary. Some keys are present on every event, others are only relevant
28 // for a few events. And some keys must only be added to the event details if 28 // for a few events. And some keys must only be added to the event details if
29 // requested at the registration of the event listener (in ExtraInfoSpec). 29 // requested at the registration of the event listener (in ExtraInfoSpec).
30 // This class provides setters that are aware of these rules. 30 // This class provides setters that are aware of these rules.
31 // 31 //
32 // Not all keys are managed by this class. Keys that do not require a special 32 // Not all keys are managed by this class. Keys that do not require a special
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // Used to determine the tabId, frameId and parentFrameId. 155 // Used to determine the tabId, frameId and parentFrameId.
156 int render_process_id_; 156 int render_process_id_;
157 int render_frame_id_; 157 int render_frame_id_;
158 158
159 DISALLOW_COPY_AND_ASSIGN(WebRequestEventDetails); 159 DISALLOW_COPY_AND_ASSIGN(WebRequestEventDetails);
160 }; 160 };
161 161
162 } // namespace extensions 162 } // namespace extensions
163 163
164 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_DETAILS_H_ 164 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_DETAILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698