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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/operations/operation.h

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 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 CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_OPERATION_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_OPERATION_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_OPERATION_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_OPERATION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 19 matching lines...) Expand all
30 class Operation : public RequestManager::HandlerInterface { 30 class Operation : public RequestManager::HandlerInterface {
31 public: 31 public:
32 typedef base::Callback<bool(scoped_ptr<extensions::Event> event)> 32 typedef base::Callback<bool(scoped_ptr<extensions::Event> event)>
33 DispatchEventImplCallback; 33 DispatchEventImplCallback;
34 34
35 Operation(extensions::EventRouter* event_router, 35 Operation(extensions::EventRouter* event_router,
36 const ProvidedFileSystemInfo& file_system_info); 36 const ProvidedFileSystemInfo& file_system_info);
37 virtual ~Operation(); 37 virtual ~Operation();
38 38
39 // RequestManager::HandlerInterface overrides. 39 // RequestManager::HandlerInterface overrides.
40 virtual bool Execute(int request_id) OVERRIDE = 0; 40 virtual bool Execute(int request_id) override = 0;
41 virtual void OnSuccess(int request_id, 41 virtual void OnSuccess(int request_id,
42 scoped_ptr<RequestValue> result, 42 scoped_ptr<RequestValue> result,
43 bool has_more) OVERRIDE = 0; 43 bool has_more) override = 0;
44 virtual void OnError(int request_id, 44 virtual void OnError(int request_id,
45 scoped_ptr<RequestValue> result, 45 scoped_ptr<RequestValue> result,
46 base::File::Error error) OVERRIDE = 0; 46 base::File::Error error) override = 0;
47 47
48 // Sets custom dispatchign event implementation for tests. 48 // Sets custom dispatchign event implementation for tests.
49 void SetDispatchEventImplForTesting( 49 void SetDispatchEventImplForTesting(
50 const DispatchEventImplCallback& callback); 50 const DispatchEventImplCallback& callback);
51 51
52 protected: 52 protected:
53 // Sends an event to the providing extension. Returns false, if the providing 53 // Sends an event to the providing extension. Returns false, if the providing
54 // extension does not handle the |event_name| event. 54 // extension does not handle the |event_name| event.
55 bool SendEvent(int request_id, 55 bool SendEvent(int request_id,
56 const std::string& event_name, 56 const std::string& event_name,
57 scoped_ptr<base::ListValue> event_args); 57 scoped_ptr<base::ListValue> event_args);
58 58
59 ProvidedFileSystemInfo file_system_info_; 59 ProvidedFileSystemInfo file_system_info_;
60 60
61 private: 61 private:
62 DispatchEventImplCallback dispatch_event_impl_; 62 DispatchEventImplCallback dispatch_event_impl_;
63 DISALLOW_COPY_AND_ASSIGN(Operation); 63 DISALLOW_COPY_AND_ASSIGN(Operation);
64 }; 64 };
65 65
66 } // namespace operations 66 } // namespace operations
67 } // namespace file_system_provider 67 } // namespace file_system_provider
68 } // namespace chromeos 68 } // namespace chromeos
69 69
70 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_OPERATION_H_ 70 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_OPERATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698