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

Side by Side Diff: content/public/browser/android/content_protocol_handler.h

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent 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) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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_ANDROID_CONTENT_PROTOCOL_HANDLER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_PROTOCOL_HANDLER_H_
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_PROTOCOL_HANDLER_H_ 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_PROTOCOL_HANDLER_H_
7 7
8 #include <memory>
9
8 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
11 #include "net/url_request/url_request_job_factory.h" 12 #include "net/url_request/url_request_job_factory.h"
12 13
13 namespace base { 14 namespace base {
14 class TaskRunner; 15 class TaskRunner;
15 } 16 }
16 17
17 namespace content { 18 namespace content {
18 19
19 // ProtocolHandler for content scheme jobs. 20 // ProtocolHandler for content scheme jobs.
20 class CONTENT_EXPORT ContentProtocolHandler : 21 class CONTENT_EXPORT ContentProtocolHandler :
21 public net::URLRequestJobFactory::ProtocolHandler { 22 public net::URLRequestJobFactory::ProtocolHandler {
22 public: 23 public:
23 // Creates and returns a ContentProtocolHandler instance. 24 // Creates and returns a ContentProtocolHandler instance.
24 static scoped_ptr<ContentProtocolHandler> Create( 25 static std::unique_ptr<ContentProtocolHandler> Create(
25 const scoped_refptr<base::TaskRunner>& content_task_runner); 26 const scoped_refptr<base::TaskRunner>& content_task_runner);
26 27
27 ~ContentProtocolHandler() override {} 28 ~ContentProtocolHandler() override {}
28 }; 29 };
29 30
30 } // namespace content 31 } // namespace content
31 32
32 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_PROTOCOL_HANDLER_H_ 33 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_PROTOCOL_HANDLER_H_
OLDNEW
« no previous file with comments | « content/ppapi_plugin/ppapi_thread.h ('k') | content/public/browser/android/provision_fetcher_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698