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

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

Issue 2700553002: Introduce WebRequestResourceType. (Closed)
Patch Set: Address comments; add 'media'; make type mapping consistent. 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 <stdint.h>
pkalinnikov 2017/02/16 19:43:38 Remove this.
pkalinnikov 2017/02/16 21:24:46 Done.
8 #include <memory> 9 #include <memory>
9 #include <string> 10 #include <string>
10 11
11 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
12 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
13 #include "base/macros.h" 14 #include "base/macros.h"
14 #include "base/values.h" 15 #include "base/values.h"
15 #include "extensions/browser/extension_api_frame_id_map.h" 16 #include "extensions/browser/extension_api_frame_id_map.h"
16 17
17 namespace net { 18 namespace net {
18 class AuthChallengeInfo; 19 class AuthChallengeInfo;
19 class HttpRequestHeaders; 20 class HttpRequestHeaders;
20 class HttpResponseHeaders; 21 class HttpResponseHeaders;
21 class URLRequest; 22 class URLRequest;
22 } 23 } // namespace net
23 24
24 namespace extensions { 25 namespace extensions {
25 26
26 // This helper class is used to construct the details for a webRequest event 27 // 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 28 // 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 29 // 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). 30 // requested at the registration of the event listener (in ExtraInfoSpec).
30 // This class provides setters that are aware of these rules. 31 // This class provides setters that are aware of these rules.
31 // 32 //
32 // Not all keys are managed by this class. Keys that do not require a special 33 // 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. 156 // Used to determine the tabId, frameId and parentFrameId.
156 int render_process_id_; 157 int render_process_id_;
157 int render_frame_id_; 158 int render_frame_id_;
158 159
159 DISALLOW_COPY_AND_ASSIGN(WebRequestEventDetails); 160 DISALLOW_COPY_AND_ASSIGN(WebRequestEventDetails);
160 }; 161 };
161 162
162 } // namespace extensions 163 } // namespace extensions
163 164
164 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_DETAILS_H_ 165 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_DETAILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698