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

Side by Side Diff: content/public/browser/resource_request_info.h

Issue 694773003: Allow URL requests for object/embed tags to be intercepted as streams. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor-guest-view-container-3
Patch Set: Created 6 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_
6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/common/resource_type.h" 10 #include "content/public/common/resource_type.h"
(...skipping 20 matching lines...) Expand all
31 // given URLRequest. 31 // given URLRequest.
32 // NOTE: Add more parameters if you need to initialize other fields. 32 // NOTE: Add more parameters if you need to initialize other fields.
33 CONTENT_EXPORT static void AllocateForTesting(net::URLRequest* request, 33 CONTENT_EXPORT static void AllocateForTesting(net::URLRequest* request,
34 ResourceType resource_type, 34 ResourceType resource_type,
35 ResourceContext* context, 35 ResourceContext* context,
36 int render_process_id, 36 int render_process_id,
37 int render_view_id, 37 int render_view_id,
38 int render_frame_id, 38 int render_frame_id,
39 bool is_main_frame, 39 bool is_main_frame,
40 bool parent_is_main_frame, 40 bool parent_is_main_frame,
41 bool allow_download,
41 bool is_async); 42 bool is_async);
42 43
43 // Returns the associated RenderFrame for a given process. Returns false, if 44 // Returns the associated RenderFrame for a given process. Returns false, if
44 // there is no associated RenderFrame. This method does not rely on the 45 // there is no associated RenderFrame. This method does not rely on the
45 // request being allocated by the ResourceDispatcherHost, but works for all 46 // request being allocated by the ResourceDispatcherHost, but works for all
46 // URLRequests that are associated with a RenderFrame. 47 // URLRequests that are associated with a RenderFrame.
47 CONTENT_EXPORT static bool GetRenderFrameForRequest( 48 CONTENT_EXPORT static bool GetRenderFrameForRequest(
48 const net::URLRequest* request, 49 const net::URLRequest* request,
49 int* render_process_id, 50 int* render_process_id,
50 int* render_frame_id); 51 int* render_frame_id);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // Whether this is a download. 124 // Whether this is a download.
124 virtual bool IsDownload() const = 0; 125 virtual bool IsDownload() const = 0;
125 126
126 protected: 127 protected:
127 virtual ~ResourceRequestInfo() {} 128 virtual ~ResourceRequestInfo() {}
128 }; 129 };
129 130
130 } // namespace content 131 } // namespace content
131 132
132 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ 133 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | extensions/browser/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698