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

Side by Side Diff: storage/browser/fileapi/file_system_url_request_job_factory.cc

Issue 624063003: Replacing the OVERRIDE with override and FINAL with final in storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the error 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 #include "storage/browser/fileapi/file_system_url_request_job_factory.h" 5 #include "storage/browser/fileapi/file_system_url_request_job_factory.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "net/url_request/url_request.h" 11 #include "net/url_request/url_request.h"
12 #include "storage/browser/fileapi/file_system_dir_url_request_job.h" 12 #include "storage/browser/fileapi/file_system_dir_url_request_job.h"
13 #include "storage/browser/fileapi/file_system_url_request_job.h" 13 #include "storage/browser/fileapi/file_system_url_request_job.h"
14 14
15 namespace storage { 15 namespace storage {
16 16
17 namespace { 17 namespace {
18 18
19 class FileSystemProtocolHandler 19 class FileSystemProtocolHandler
20 : public net::URLRequestJobFactory::ProtocolHandler { 20 : public net::URLRequestJobFactory::ProtocolHandler {
21 public: 21 public:
22 FileSystemProtocolHandler(const std::string& storage_domain, 22 FileSystemProtocolHandler(const std::string& storage_domain,
23 FileSystemContext* context); 23 FileSystemContext* context);
24 virtual ~FileSystemProtocolHandler(); 24 virtual ~FileSystemProtocolHandler();
25 25
26 virtual net::URLRequestJob* MaybeCreateJob( 26 virtual net::URLRequestJob* MaybeCreateJob(
27 net::URLRequest* request, 27 net::URLRequest* request,
28 net::NetworkDelegate* network_delegate) const OVERRIDE; 28 net::NetworkDelegate* network_delegate) const override;
29 29
30 private: 30 private:
31 const std::string storage_domain_; 31 const std::string storage_domain_;
32 32
33 // No scoped_refptr because |file_system_context_| is owned by the 33 // No scoped_refptr because |file_system_context_| is owned by the
34 // ProfileIOData, which also owns this ProtocolHandler. 34 // ProfileIOData, which also owns this ProtocolHandler.
35 FileSystemContext* const file_system_context_; 35 FileSystemContext* const file_system_context_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(FileSystemProtocolHandler); 37 DISALLOW_COPY_AND_ASSIGN(FileSystemProtocolHandler);
38 }; 38 };
(...skipping 25 matching lines...) Expand all
64 64
65 } // anonymous namespace 65 } // anonymous namespace
66 66
67 net::URLRequestJobFactory::ProtocolHandler* CreateFileSystemProtocolHandler( 67 net::URLRequestJobFactory::ProtocolHandler* CreateFileSystemProtocolHandler(
68 const std::string& storage_domain, FileSystemContext* context) { 68 const std::string& storage_domain, FileSystemContext* context) {
69 DCHECK(context); 69 DCHECK(context);
70 return new FileSystemProtocolHandler(storage_domain, context); 70 return new FileSystemProtocolHandler(storage_domain, context);
71 } 71 }
72 72
73 } // namespace storage 73 } // namespace storage
OLDNEW
« no previous file with comments | « storage/browser/fileapi/file_system_url_request_job.h ('k') | storage/browser/fileapi/file_writer_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698