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

Side by Side Diff: content/renderer/web_ui_mojo.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/web_ui_extension_data.h ('k') | content/renderer/web_ui_mojo_context_state.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 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 CONTENT_RENDERER_WEB_UI_MOJO_H_ 5 #ifndef CONTENT_RENDERER_WEB_UI_MOJO_H_
6 #define CONTENT_RENDERER_WEB_UI_MOJO_H_ 6 #define CONTENT_RENDERER_WEB_UI_MOJO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/public/renderer/render_frame_observer.h" 10 #include "content/public/renderer/render_frame_observer.h"
(...skipping 20 matching lines...) Expand all
31 explicit WebUIMojo(RenderView* render_view); 31 explicit WebUIMojo(RenderView* render_view);
32 32
33 private: 33 private:
34 class MainFrameObserver : public RenderFrameObserver { 34 class MainFrameObserver : public RenderFrameObserver {
35 public: 35 public:
36 explicit MainFrameObserver(WebUIMojo* web_ui_mojo); 36 explicit MainFrameObserver(WebUIMojo* web_ui_mojo);
37 virtual ~MainFrameObserver(); 37 virtual ~MainFrameObserver();
38 38
39 // RenderFrameObserver overrides: 39 // RenderFrameObserver overrides:
40 virtual void WillReleaseScriptContext(v8::Handle<v8::Context> context, 40 virtual void WillReleaseScriptContext(v8::Handle<v8::Context> context,
41 int world_id) OVERRIDE; 41 int world_id) override;
42 virtual void DidFinishDocumentLoad() OVERRIDE; 42 virtual void DidFinishDocumentLoad() override;
43 43
44 private: 44 private:
45 WebUIMojo* web_ui_mojo_; 45 WebUIMojo* web_ui_mojo_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(MainFrameObserver); 47 DISALLOW_COPY_AND_ASSIGN(MainFrameObserver);
48 }; 48 };
49 49
50 virtual ~WebUIMojo(); 50 virtual ~WebUIMojo();
51 51
52 void CreateContextState(); 52 void CreateContextState();
53 void DestroyContextState(v8::Handle<v8::Context> context); 53 void DestroyContextState(v8::Handle<v8::Context> context);
54 54
55 // Invoked when the frame finishes loading. Invokes Run() on the 55 // Invoked when the frame finishes loading. Invokes Run() on the
56 // WebUIMojoContextState. 56 // WebUIMojoContextState.
57 void OnDidFinishDocumentLoad(); 57 void OnDidFinishDocumentLoad();
58 58
59 WebUIMojoContextState* GetContextState(); 59 WebUIMojoContextState* GetContextState();
60 60
61 // RenderViewObserver overrides: 61 // RenderViewObserver overrides:
62 virtual void DidCreateDocumentElement(blink::WebLocalFrame* frame) OVERRIDE; 62 virtual void DidCreateDocumentElement(blink::WebLocalFrame* frame) override;
63 virtual void DidClearWindowObject(blink::WebLocalFrame* frame) OVERRIDE; 63 virtual void DidClearWindowObject(blink::WebLocalFrame* frame) override;
64 64
65 MainFrameObserver main_frame_observer_; 65 MainFrameObserver main_frame_observer_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(WebUIMojo); 67 DISALLOW_COPY_AND_ASSIGN(WebUIMojo);
68 }; 68 };
69 69
70 } // namespace content 70 } // namespace content
71 71
72 #endif // CONTENT_RENDERER_WEB_UI_MOJO_H_ 72 #endif // CONTENT_RENDERER_WEB_UI_MOJO_H_
OLDNEW
« no previous file with comments | « content/renderer/web_ui_extension_data.h ('k') | content/renderer/web_ui_mojo_context_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698