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

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

Issue 671663002: Standardize usage of virtual/override/final in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 (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_COMMON_NET_URL_REQUEST_USER_DATA_H_ 5 #ifndef CONTENT_COMMON_NET_URL_REQUEST_USER_DATA_H_
6 #define CONTENT_COMMON_NET_URL_REQUEST_USER_DATA_H_ 6 #define CONTENT_COMMON_NET_URL_REQUEST_USER_DATA_H_
7 7
8 #include "base/supports_user_data.h" 8 #include "base/supports_user_data.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 // Used to annotate all URLRequests for which the request can be associated 12 // Used to annotate all URLRequests for which the request can be associated
13 // with a given render view. 13 // with a given render view.
14 class URLRequestUserData : public base::SupportsUserData::Data { 14 class URLRequestUserData : public base::SupportsUserData::Data {
15 public: 15 public:
16 URLRequestUserData(int render_process_id, 16 URLRequestUserData(int render_process_id,
17 int render_frame_id); 17 int render_frame_id);
18 virtual ~URLRequestUserData(); 18 ~URLRequestUserData() override;
19 19
20 int render_process_id() const { return render_process_id_; } 20 int render_process_id() const { return render_process_id_; }
21 int render_frame_id() const { return render_frame_id_; } 21 int render_frame_id() const { return render_frame_id_; }
22 22
23 static const void* kUserDataKey; 23 static const void* kUserDataKey;
24 24
25 private: 25 private:
26 int render_process_id_; 26 int render_process_id_;
27 int render_frame_id_; 27 int render_frame_id_;
28 }; 28 };
29 29
30 } // namespace content 30 } // namespace content
31 31
32 #endif // CONTENT_COMMON_NET_URL_REQUEST_USER_DATA_H_ 32 #endif // CONTENT_COMMON_NET_URL_REQUEST_USER_DATA_H_
OLDNEW
« no previous file with comments | « content/common/mojo/service_registry_impl.h ('k') | content/common/one_writer_seqlock_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698