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

Side by Side Diff: chrome/browser/guest_view/web_view/chrome_web_view_guest_delegate.h

Issue 1056793002: Move clear cache code from chrome/ (ChromeWVGDelegate) to extensions/ (WVGuest) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-spbdr
Patch Set: fix test on windows Created 5 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
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 CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_
6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ 6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_
7 7
8 #include "chrome/browser/extensions/api/web_view/chrome_web_view_internal_api.h" 8 #include "chrome/browser/extensions/api/web_view/chrome_web_view_internal_api.h"
9 #include "extensions/browser/guest_view/web_view/web_view_guest.h" 9 #include "extensions/browser/guest_view/web_view/web_view_guest.h"
10 #include "extensions/browser/guest_view/web_view/web_view_guest_delegate.h" 10 #include "extensions/browser/guest_view/web_view/web_view_guest_delegate.h"
11 11
12 #if defined(OS_CHROMEOS) 12 #if defined(OS_CHROMEOS)
13 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" 13 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
14 #endif 14 #endif
15 15
16 class RenderViewContextMenuBase; 16 class RenderViewContextMenuBase;
17 17
18 namespace ui { 18 namespace ui {
19 class SimpleMenuModel; 19 class SimpleMenuModel;
20 } // namespace ui 20 } // namespace ui
21 21
22 namespace extensions { 22 namespace extensions {
23 23
24 class ChromeWebViewGuestDelegate : public WebViewGuestDelegate { 24 class ChromeWebViewGuestDelegate : public WebViewGuestDelegate {
25 public : 25 public :
26 explicit ChromeWebViewGuestDelegate(WebViewGuest* web_view_guest); 26 explicit ChromeWebViewGuestDelegate(WebViewGuest* web_view_guest);
27 ~ChromeWebViewGuestDelegate() override; 27 ~ChromeWebViewGuestDelegate() override;
28 28
29 // WebViewGuestDelegate implementation. 29 // WebViewGuestDelegate implementation.
30 void ClearCache(base::Time remove_since,
31 const base::Closure& done_callback) override;
32 bool HandleContextMenu(const content::ContextMenuParams& params) override; 30 bool HandleContextMenu(const content::ContextMenuParams& params) override;
33 void OnAttachWebViewHelpers(content::WebContents* contents) override; 31 void OnAttachWebViewHelpers(content::WebContents* contents) override;
34 void OnDidCommitProvisionalLoadForFrame(bool is_main_frame) override; 32 void OnDidCommitProvisionalLoadForFrame(bool is_main_frame) override;
35 void OnDidInitialize() override; 33 void OnDidInitialize() override;
36 void OnDocumentLoadedInFrame( 34 void OnDocumentLoadedInFrame(
37 content::RenderFrameHost* render_frame_host) override; 35 content::RenderFrameHost* render_frame_host) override;
38 void OnGuestDestroyed() override; 36 void OnGuestDestroyed() override;
39 void OnShowContextMenu(int request_id, const MenuItemVector* items) override; 37 void OnShowContextMenu(int request_id, const MenuItemVector* items) override;
40 38
41 WebViewGuest* web_view_guest() const { return web_view_guest_; } 39 WebViewGuest* web_view_guest() const { return web_view_guest_; }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // destroyed. 78 // destroyed.
81 base::WeakPtrFactory<ChromeWebViewGuestDelegate> weak_ptr_factory_; 79 base::WeakPtrFactory<ChromeWebViewGuestDelegate> weak_ptr_factory_;
82 80
83 DISALLOW_COPY_AND_ASSIGN(ChromeWebViewGuestDelegate); 81 DISALLOW_COPY_AND_ASSIGN(ChromeWebViewGuestDelegate);
84 }; 82 };
85 83
86 } // namespace extensions 84 } // namespace extensions
87 85
88 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ 86 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_
89 87
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698