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

Side by Side Diff: components/translate/content/browser/browser_cld_data_provider.h

Issue 666133002: Standardize usage of virtual/override/final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 COMPONENTS_TRANSLATE_CONTENT_BROWSER_BROWSER_CLD_DATA_PROVIDER_H_ 5 #ifndef COMPONENTS_TRANSLATE_CONTENT_BROWSER_BROWSER_CLD_DATA_PROVIDER_H_
6 #define COMPONENTS_TRANSLATE_CONTENT_BROWSER_BROWSER_CLD_DATA_PROVIDER_H_ 6 #define COMPONENTS_TRANSLATE_CONTENT_BROWSER_BROWSER_CLD_DATA_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 13 matching lines...) Expand all
24 // The implementation must be paired with a renderer-side implementation of 24 // The implementation must be paired with a renderer-side implementation of
25 // the RendererCldDataProvider class: 25 // the RendererCldDataProvider class:
26 // 26 //
27 // components/translate/content/renderer/renderer_cld_data_provider.h 27 // components/translate/content/renderer/renderer_cld_data_provider.h
28 // 28 //
29 // ... and the glue between them is typically a pair of request/response IPC 29 // ... and the glue between them is typically a pair of request/response IPC
30 // messages using the CldDataProviderMsgStart IPCMessageStart enumerated 30 // messages using the CldDataProviderMsgStart IPCMessageStart enumerated
31 // constant from ipc_message_start.h 31 // constant from ipc_message_start.h
32 class BrowserCldDataProvider : public IPC::Listener { 32 class BrowserCldDataProvider : public IPC::Listener {
33 public: 33 public:
34 virtual ~BrowserCldDataProvider() {} 34 ~BrowserCldDataProvider() override {}
35 35
36 // IPC::Listener implementation: 36 // IPC::Listener implementation:
37 // If the specified message is a request for CLD data, invokes 37 // If the specified message is a request for CLD data, invokes
38 // OnCldDataRequest() and returns true. In all other cases, this method does 38 // OnCldDataRequest() and returns true. In all other cases, this method does
39 // nothing. This method is defined as virtual in order to force the 39 // nothing. This method is defined as virtual in order to force the
40 // implementation to define the specific IPC message(s) that it handles. 40 // implementation to define the specific IPC message(s) that it handles.
41 virtual bool OnMessageReceived(const IPC::Message&) = 0; 41 virtual bool OnMessageReceived(const IPC::Message&) = 0;
42 42
43 // Called when the browser process receives an appropriate message in 43 // Called when the browser process receives an appropriate message in
44 // OnMessageReceived, above. The implementation should attempt to locate 44 // OnMessageReceived, above. The implementation should attempt to locate
(...skipping 28 matching lines...) Expand all
73 void SetCldDataFilePath(const base::FilePath& path); 73 void SetCldDataFilePath(const base::FilePath& path);
74 74
75 // Returns the path most recently set by SetCldDataFilePath. The initial value 75 // Returns the path most recently set by SetCldDataFilePath. The initial value
76 // prior to any such call is the empty path. If the data source doesn't support 76 // prior to any such call is the empty path. If the data source doesn't support
77 // a data file, returns the empty path. 77 // a data file, returns the empty path.
78 base::FilePath GetCldDataFilePath(); 78 base::FilePath GetCldDataFilePath();
79 79
80 } // namespace translate 80 } // namespace translate
81 81
82 #endif // COMPONENTS_TRANSLATE_CONTENT_BROWSER_BROWSER_CLD_DATA_PROVIDER_H_ 82 #endif // COMPONENTS_TRANSLATE_CONTENT_BROWSER_BROWSER_CLD_DATA_PROVIDER_H_
OLDNEW
« no previous file with comments | « components/tracing/child_trace_message_filter.h ('k') | components/translate/content/browser/content_translate_driver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698