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

Side by Side Diff: content/public/renderer/render_frame_observer.h

Issue 796493004: Remove FrameDetached and FrameWillClose listeners from AutofillAgent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix init order 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 virtual void DidFinishDocumentLoad() {} 52 virtual void DidFinishDocumentLoad() {}
53 virtual void WillReleaseScriptContext(v8::Handle<v8::Context> context, 53 virtual void WillReleaseScriptContext(v8::Handle<v8::Context> context,
54 int world_id) {} 54 int world_id) {}
55 virtual void DidClearWindowObject() {} 55 virtual void DidClearWindowObject() {}
56 virtual void DidChangeName(const base::string16& name) {} 56 virtual void DidChangeName(const base::string16& name) {}
57 virtual void DidChangeManifest() {} 57 virtual void DidChangeManifest() {}
58 virtual void DidChangeScrollOffset() {} 58 virtual void DidChangeScrollOffset() {}
59 virtual void WillSendSubmitEvent(const blink::WebFormElement& form) {} 59 virtual void WillSendSubmitEvent(const blink::WebFormElement& form) {}
60 virtual void WillSubmitForm(const blink::WebFormElement& form) {} 60 virtual void WillSubmitForm(const blink::WebFormElement& form) {}
61 61
62 // Called before FrameWillClose, when this frame has been detached from the
63 // view, but has not been closed yet. This *will* be called when parent frames
64 // are closing. NB: IPCs to the browser will fail silently by the time this
65 // notification is sent.
66 virtual void FrameDetached() {}
67
62 // Called when the frame will soon be closed. This is the last opportunity to 68 // Called when the frame will soon be closed. This is the last opportunity to
63 // send messages to the host (e.g., for clean-up, shutdown, etc.). 69 // send messages to the host (e.g., for clean-up, shutdown, etc.). This is
70 // *not* called on child frames when parent frames are being closed.
64 virtual void FrameWillClose() {} 71 virtual void FrameWillClose() {}
65 72
66 // Called when we receive a console message from Blink for which we requested 73 // Called when we receive a console message from Blink for which we requested
67 // extra details (like the stack trace). |message| is the error message, 74 // extra details (like the stack trace). |message| is the error message,
68 // |source| is the Blink-reported source of the error (either external or 75 // |source| is the Blink-reported source of the error (either external or
69 // internal), and |stack_trace| is the stack trace of the error in a 76 // internal), and |stack_trace| is the stack trace of the error in a
70 // human-readable format (each frame is formatted as 77 // human-readable format (each frame is formatted as
71 // "\n at function_name (source:line_number:column_number)"). 78 // "\n at function_name (source:line_number:column_number)").
72 virtual void DetailedConsoleMessageAdded(const base::string16& message, 79 virtual void DetailedConsoleMessageAdded(const base::string16& message,
73 const base::string16& source, 80 const base::string16& source,
(...skipping 27 matching lines...) Expand all
101 RenderFrame* render_frame_; 108 RenderFrame* render_frame_;
102 // The routing ID of the associated RenderFrame. 109 // The routing ID of the associated RenderFrame.
103 int routing_id_; 110 int routing_id_;
104 111
105 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); 112 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver);
106 }; 113 };
107 114
108 } // namespace content 115 } // namespace content
109 116
110 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ 117 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/test_autofill_client.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698