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

Side by Side Diff: content/common/net/url_request_devtools_user_data.h

Issue 2776523005: Plumbing devtools agent host id and request id between processes (Closed)
Patch Set: Rebased Created 3 years, 8 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_COMMON_NET_URL_REQUEST_DEVTOOLS_USER_DATA_H_
6 #define CONTENT_COMMON_NET_URL_REQUEST_DEVTOOLS_USER_DATA_H_
7
8 #include "base/supports_user_data.h"
9
10 namespace content {
11
12 // Used to annotate all URLRequests for which the request can be associated
13 // with a given DevToolsAgentHost.
14 class URLRequestDevtoolsUserData : public base::SupportsUserData::Data {
15 public:
16 URLRequestDevtoolsUserData(const std::string& devtools_agent_host_id,
17 const std::string& devtools_request_id);
18 ~URLRequestDevtoolsUserData() override;
19
20 const std::string& devtools_agent_host_id() const {
21 return devtools_agent_host_id_;
22 }
23
24 const std::string& devtools_request_id() const {
25 return devtools_request_id_;
26 }
27
28 bool is_redirect() const { return is_redirect_; }
29
30 void SetIsRedirect(bool is_redirect) { is_redirect_ = is_redirect; }
31
32 static const void* kUserDataKey;
33
34 private:
35 const std::string devtools_agent_host_id_;
36 const std::string devtools_request_id_;
37 bool is_redirect_;
38 };
39
40 } // namespace content
41
42 #endif // CONTENT_COMMON_NET_URL_REQUEST_DEVTOOLS_USER_DATA_H_
OLDNEW
« no previous file with comments | « content/common/navigation_params.cc ('k') | content/common/net/url_request_devtools_user_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698