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

Side by Side Diff: content/browser/webui/url_data_manager_backend.h

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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_BROWSER_WEBUI_URL_DATA_MANAGER_BACKEND_H_ 5 #ifndef CONTENT_BROWSER_WEBUI_URL_DATA_MANAGER_BACKEND_H_
6 #define CONTENT_BROWSER_WEBUI_URL_DATA_MANAGER_BACKEND_H_ 6 #define CONTENT_BROWSER_WEBUI_URL_DATA_MANAGER_BACKEND_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory>
9 #include <string> 10 #include <string>
10 #include <vector> 11 #include <vector>
11 12
12 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
13 #include "base/macros.h" 14 #include "base/macros.h"
14 #include "base/memory/scoped_ptr.h"
15 #include "base/supports_user_data.h" 15 #include "base/supports_user_data.h"
16 #include "content/browser/webui/url_data_manager.h" 16 #include "content/browser/webui/url_data_manager.h"
17 #include "content/public/browser/url_data_source.h" 17 #include "content/public/browser/url_data_source.h"
18 #include "net/url_request/url_request_job_factory.h" 18 #include "net/url_request/url_request_job_factory.h"
19 19
20 class GURL; 20 class GURL;
21 21
22 namespace base { 22 namespace base {
23 class RefCountedMemory; 23 class RefCountedMemory;
24 } 24 }
(...skipping 11 matching lines...) Expand all
36 // this class. URLDataManagerBackend is owned by ResourceContext. 36 // this class. URLDataManagerBackend is owned by ResourceContext.
37 class URLDataManagerBackend : public base::SupportsUserData::Data { 37 class URLDataManagerBackend : public base::SupportsUserData::Data {
38 public: 38 public:
39 typedef int RequestID; 39 typedef int RequestID;
40 40
41 URLDataManagerBackend(); 41 URLDataManagerBackend();
42 ~URLDataManagerBackend() override; 42 ~URLDataManagerBackend() override;
43 43
44 // Invoked to create the protocol handler for chrome://. |is_incognito| should 44 // Invoked to create the protocol handler for chrome://. |is_incognito| should
45 // be set for incognito profiles. Called on the UI thread. 45 // be set for incognito profiles. Called on the UI thread.
46 CONTENT_EXPORT static scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 46 CONTENT_EXPORT static std::unique_ptr<
47 net::URLRequestJobFactory::ProtocolHandler>
47 CreateProtocolHandler(content::ResourceContext* resource_context, 48 CreateProtocolHandler(content::ResourceContext* resource_context,
48 bool is_incognito, 49 bool is_incognito,
49 ChromeBlobStorageContext* blob_storage_context); 50 ChromeBlobStorageContext* blob_storage_context);
50 51
51 // Adds a DataSource to the collection of data sources. 52 // Adds a DataSource to the collection of data sources.
52 void AddDataSource(URLDataSourceImpl* source); 53 void AddDataSource(URLDataSourceImpl* source);
53 54
54 // DataSource invokes this. Sends the data to the URLRequest. 55 // DataSource invokes this. Sends the data to the URLRequest.
55 void DataAvailable(RequestID request_id, base::RefCountedMemory* bytes); 56 void DataAvailable(RequestID request_id, base::RefCountedMemory* bytes);
56 57
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 106
106 // Creates protocol handler for chrome-devtools://. |is_incognito| should be 107 // Creates protocol handler for chrome-devtools://. |is_incognito| should be
107 // set for incognito profiles. 108 // set for incognito profiles.
108 net::URLRequestJobFactory::ProtocolHandler* 109 net::URLRequestJobFactory::ProtocolHandler*
109 CreateDevToolsProtocolHandler(content::ResourceContext* resource_context, 110 CreateDevToolsProtocolHandler(content::ResourceContext* resource_context,
110 bool is_incognito); 111 bool is_incognito);
111 112
112 } // namespace content 113 } // namespace content
113 114
114 #endif // CONTENT_BROWSER_WEBUI_URL_DATA_MANAGER_BACKEND_H_ 115 #endif // CONTENT_BROWSER_WEBUI_URL_DATA_MANAGER_BACKEND_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_drag_source_mac_unittest.mm ('k') | content/browser/webui/url_data_manager_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698