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

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

Issue 222973003: Conversion of content_shell target to use WebLocalFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove some TODOs Created 6 years, 8 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 | Annotate | Revision Log
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // Invoked when the frame finishes loading. Invokes SetHandleOnContextState() 58 // Invoked when the frame finishes loading. Invokes SetHandleOnContextState()
59 // if necessary. 59 // if necessary.
60 void OnDidFinishDocumentLoad(); 60 void OnDidFinishDocumentLoad();
61 61
62 // Invokes SetHandle() on the WebUIMojoContextState (if there is one). 62 // Invokes SetHandle() on the WebUIMojoContextState (if there is one).
63 void SetHandleOnContextState(mojo::ScopedMessagePipeHandle handle); 63 void SetHandleOnContextState(mojo::ScopedMessagePipeHandle handle);
64 64
65 WebUIMojoContextState* GetContextState(); 65 WebUIMojoContextState* GetContextState();
66 66
67 // RenderViewObserver overrides: 67 // RenderViewObserver overrides:
68 virtual void DidClearWindowObject(blink::WebFrame* frame, 68 virtual void DidClearWindowObject(blink::WebLocalFrame* frame,
69 int world_id) OVERRIDE; 69 int world_id) OVERRIDE;
70 70
71 MainFrameObserver main_frame_observer_; 71 MainFrameObserver main_frame_observer_;
72 72
73 // Set to true in DidFinishDocumentLoad(). 'main' is only executed once this 73 // Set to true in DidFinishDocumentLoad(). 'main' is only executed once this
74 // happens. 74 // happens.
75 bool did_finish_document_load_; 75 bool did_finish_document_load_;
76 76
77 // If SetBrowserHandle() is invoked before the document finishes loading the 77 // If SetBrowserHandle() is invoked before the document finishes loading the
78 // MessagePipeHandle is stored here. When the document finishes loading 78 // MessagePipeHandle is stored here. When the document finishes loading
79 // SetHandleOnContextState() is invoked to send the handle to the 79 // SetHandleOnContextState() is invoked to send the handle to the
80 // WebUIMojoContextState and ultimately the page. 80 // WebUIMojoContextState and ultimately the page.
81 mojo::ScopedMessagePipeHandle pending_handle_; 81 mojo::ScopedMessagePipeHandle pending_handle_;
82 82
83 DISALLOW_COPY_AND_ASSIGN(WebUIMojo); 83 DISALLOW_COPY_AND_ASSIGN(WebUIMojo);
84 }; 84 };
85 85
86 } // namespace content 86 } // namespace content
87 87
88 #endif // CONTENT_RENDERER_WEB_UI_MOJO_H_ 88 #endif // CONTENT_RENDERER_WEB_UI_MOJO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698