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

Side by Side Diff: content/renderer/web_ui_extension_data.h

Issue 633303002: Replace FINAL and OVERRIDE with their C++11 counterparts in content/renderer (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
« no previous file with comments | « content/renderer/v8_value_converter_impl_unittest.cc ('k') | content/renderer/web_ui_mojo.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef CONTENT_RENDERER_WEB_UI_EXTENSION_DATA_H_ 5 #ifndef CONTENT_RENDERER_WEB_UI_EXTENSION_DATA_H_
6 #define CONTENT_RENDERER_WEB_UI_EXTENSION_DATA_H_ 6 #define CONTENT_RENDERER_WEB_UI_EXTENSION_DATA_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "content/public/renderer/render_view_observer.h" 12 #include "content/public/renderer/render_view_observer.h"
13 #include "content/public/renderer/render_view_observer_tracker.h" 13 #include "content/public/renderer/render_view_observer_tracker.h"
14 14
15 namespace content { 15 namespace content {
16 16
17 class WebUIExtensionData 17 class WebUIExtensionData
18 : public RenderViewObserver, 18 : public RenderViewObserver,
19 public RenderViewObserverTracker<WebUIExtensionData> { 19 public RenderViewObserverTracker<WebUIExtensionData> {
20 public: 20 public:
21 explicit WebUIExtensionData(RenderView* render_view); 21 explicit WebUIExtensionData(RenderView* render_view);
22 virtual ~WebUIExtensionData(); 22 virtual ~WebUIExtensionData();
23 23
24 // Returns value for a given |key|. Will return an empty string if no such key 24 // Returns value for a given |key|. Will return an empty string if no such key
25 // exists in the |variable_map_|. 25 // exists in the |variable_map_|.
26 std::string GetValue(const std::string& key) const; 26 std::string GetValue(const std::string& key) const;
27 27
28 private: 28 private:
29 // RenderViewObserver implementation. 29 // RenderViewObserver implementation.
30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 30 virtual bool OnMessageReceived(const IPC::Message& message) override;
31 31
32 void OnSetWebUIProperty(const std::string& name, const std::string& value); 32 void OnSetWebUIProperty(const std::string& name, const std::string& value);
33 33
34 std::map<std::string, std::string> variable_map_; 34 std::map<std::string, std::string> variable_map_;
35 35
36 DISALLOW_IMPLICIT_CONSTRUCTORS(WebUIExtensionData); 36 DISALLOW_IMPLICIT_CONSTRUCTORS(WebUIExtensionData);
37 }; 37 };
38 38
39 } // namespace content 39 } // namespace content
40 40
41 #endif // CONTENT_RENDERER_WEB_UI_EXTENSION_DATA_H_ 41 #endif // CONTENT_RENDERER_WEB_UI_EXTENSION_DATA_H_
OLDNEW
« no previous file with comments | « content/renderer/v8_value_converter_impl_unittest.cc ('k') | content/renderer/web_ui_mojo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698