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

Side by Side Diff: components/translate/content/renderer/renderer_cld_data_provider.h

Issue 824513003: Standardize usage of virtual/override/final specifiers in components/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 11 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 COMPONENTS_TRANSLATE_CONTENT_RENDERER_RENDERER_CLD_DATA_PROVIDER_H_ 5 #ifndef COMPONENTS_TRANSLATE_CONTENT_RENDERER_RENDERER_CLD_DATA_PROVIDER_H_
6 #define COMPONENTS_TRANSLATE_CONTENT_RENDERER_RENDERER_CLD_DATA_PROVIDER_H_ 6 #define COMPONENTS_TRANSLATE_CONTENT_RENDERER_RENDERER_CLD_DATA_PROVIDER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "ipc/ipc_listener.h" 10 #include "ipc/ipc_listener.h"
(...skipping 22 matching lines...) Expand all
33 33
34 // (Inherited from IPC::Listener) 34 // (Inherited from IPC::Listener)
35 // If the specified message is a response for CLD data, attempts to 35 // If the specified message is a response for CLD data, attempts to
36 // initialize CLD2 and returns true in all cases. If initialization is 36 // initialize CLD2 and returns true in all cases. If initialization is
37 // successful and a callback has been configured via 37 // successful and a callback has been configured via
38 // SetCldAvailableCallback(...), that callback is invoked from the message 38 // SetCldAvailableCallback(...), that callback is invoked from the message
39 // loop thread. 39 // loop thread.
40 // This method is defined as virtual in order to force the implementation to 40 // This method is defined as virtual in order to force the implementation to
41 // define the specific IPC message(s) that it handles. 41 // define the specific IPC message(s) that it handles.
42 // The default implementation does nothing and returns false. 42 // The default implementation does nothing and returns false.
43 virtual bool OnMessageReceived(const IPC::Message& message) override; 43 bool OnMessageReceived(const IPC::Message& message) override;
44 44
45 // Invoked by the renderer process to request that CLD data be obtained and 45 // Invoked by the renderer process to request that CLD data be obtained and
46 // that CLD be initialized with it. The implementation is expected to 46 // that CLD be initialized with it. The implementation is expected to
47 // communicate with the paired BrowserCldDataProvider implementation on the 47 // communicate with the paired BrowserCldDataProvider implementation on the
48 // browser side. 48 // browser side.
49 // This method must be invoked on the message loop thread. 49 // This method must be invoked on the message loop thread.
50 // The default implementation does nothing. 50 // The default implementation does nothing.
51 virtual void SendCldDataRequest() {} 51 virtual void SendCldDataRequest() {}
52 52
53 // Convenience method that tracks whether or not CLD data is available. 53 // Convenience method that tracks whether or not CLD data is available.
(...skipping 11 matching lines...) Expand all
65 // The default implementation immediately invokes the callback. 65 // The default implementation immediately invokes the callback.
66 virtual void SetCldAvailableCallback(base::Callback<void(void)> callback); 66 virtual void SetCldAvailableCallback(base::Callback<void(void)> callback);
67 67
68 private: 68 private:
69 DISALLOW_COPY_AND_ASSIGN(RendererCldDataProvider); 69 DISALLOW_COPY_AND_ASSIGN(RendererCldDataProvider);
70 }; 70 };
71 71
72 } // namespace translate 72 } // namespace translate
73 73
74 #endif // COMPONENTS_TRANSLATE_CONTENT_RENDERER_RENDERER_CLD_DATAP_PROVIDER_H_ 74 #endif // COMPONENTS_TRANSLATE_CONTENT_RENDERER_RENDERER_CLD_DATAP_PROVIDER_H_
OLDNEW
« no previous file with comments | « components/sync_driver/non_ui_data_type_controller.h ('k') | components/wallpaper/wallpaper_manager_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698