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

Side by Side Diff: extensions/browser/guest_view/guest_view_base.h

Issue 670173002: Fix webrequest api for webview in webui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scoped_refptr not testable Created 6 years, 1 month 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 EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // This method is called after this GuestViewBase has been initiated. 80 // This method is called after this GuestViewBase has been initiated.
81 // 81 //
82 // This gives the derived class an opportunity to perform additional 82 // This gives the derived class an opportunity to perform additional
83 // initialization. 83 // initialization.
84 virtual void DidInitialize() {} 84 virtual void DidInitialize() {}
85 85
86 // This method is called when the initial set of frames within the page have 86 // This method is called when the initial set of frames within the page have
87 // completed loading. 87 // completed loading.
88 virtual void DidStopLoading() {} 88 virtual void DidStopLoading() {}
89 89
90 // This method is called when the guest's embedder WebContents has been 90 // This method is called before the embedder is destroyed.
91 // destroyed and the guest will be destroyed shortly. 91 // |embedder_web_contents_| should still be valid during this call. This
92 // 92 // allows the derived class to perform some cleanup related to the embedder
93 // This gives the derived class an opportunity to perform some cleanup prior 93 // web contents.
94 // to destruction. 94 virtual void EmbedderWillBeDestroyed() {}
95 virtual void EmbedderDestroyed() {}
96 95
97 // This method is called when the guest WebContents has been destroyed. This 96 // This method is called when the guest WebContents has been destroyed. This
98 // object will be destroyed after this call returns. 97 // object will be destroyed after this call returns.
99 // 98 //
100 // This gives the derived class an opportunity to perform some cleanup. 99 // This gives the derived class an opportunity to perform some cleanup.
101 virtual void GuestDestroyed() {} 100 virtual void GuestDestroyed() {}
102 101
103 // This method is invoked when the guest RenderView is ready, e.g. because we 102 // This method is invoked when the guest RenderView is ready, e.g. because we
104 // recreated it after a crash or after reattachment. 103 // recreated it after a crash or after reattachment.
105 // 104 //
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 // This is used to ensure pending tasks will not fire after this object is 326 // This is used to ensure pending tasks will not fire after this object is
328 // destroyed. 327 // destroyed.
329 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; 328 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_;
330 329
331 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); 330 DISALLOW_COPY_AND_ASSIGN(GuestViewBase);
332 }; 331 };
333 332
334 } // namespace extensions 333 } // namespace extensions
335 334
336 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ 335 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_function_dispatcher.cc ('k') | extensions/browser/guest_view/guest_view_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698