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

Side by Side Diff: chrome/browser/ui/search/instant_loader.h

Issue 13037003: permissionrequest API for guest Download. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync @tott Created 7 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_UI_SEARCH_INSTANT_LOADER_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_LOADER_H_
6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_LOADER_H_ 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_LOADER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 // Overridden from CoreTabHelperDelegate: 97 // Overridden from CoreTabHelperDelegate:
98 virtual void SwapTabContents(content::WebContents* old_contents, 98 virtual void SwapTabContents(content::WebContents* old_contents,
99 content::WebContents* new_contents) OVERRIDE; 99 content::WebContents* new_contents) OVERRIDE;
100 100
101 // Overridden from content::WebContentsDelegate: 101 // Overridden from content::WebContentsDelegate:
102 virtual bool ShouldSuppressDialogs() OVERRIDE; 102 virtual bool ShouldSuppressDialogs() OVERRIDE;
103 virtual bool ShouldFocusPageAfterCrash() OVERRIDE; 103 virtual bool ShouldFocusPageAfterCrash() OVERRIDE;
104 virtual void LostCapture() OVERRIDE; 104 virtual void LostCapture() OVERRIDE;
105 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; 105 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE;
106 virtual bool CanDownload(content::RenderViewHost* render_view_host, 106 virtual void CanDownload(content::RenderViewHost* render_view_host,
107 int request_id, 107 int request_id,
108 const std::string& request_method) OVERRIDE; 108 const std::string& request_method,
109 const base::Callback<void(bool)>& callback) OVERRIDE;
109 virtual void HandleMouseDown() OVERRIDE; 110 virtual void HandleMouseDown() OVERRIDE;
110 virtual void HandleMouseUp() OVERRIDE; 111 virtual void HandleMouseUp() OVERRIDE;
111 virtual void HandlePointerActivate() OVERRIDE; 112 virtual void HandlePointerActivate() OVERRIDE;
112 virtual void HandleGestureEnd() OVERRIDE; 113 virtual void HandleGestureEnd() OVERRIDE;
113 virtual void DragEnded() OVERRIDE; 114 virtual void DragEnded() OVERRIDE;
114 virtual bool OnGoToEntryOffset(int offset) OVERRIDE; 115 virtual bool OnGoToEntryOffset(int offset) OVERRIDE;
115 virtual content::WebContents* OpenURLFromTab( 116 virtual content::WebContents* OpenURLFromTab(
116 content::WebContents* source, 117 content::WebContents* source,
117 const content::OpenURLParams& params) OVERRIDE; 118 const content::OpenURLParams& params) OVERRIDE;
118 119
119 Delegate* const delegate_; 120 Delegate* const delegate_;
120 scoped_ptr<content::WebContents> contents_; 121 scoped_ptr<content::WebContents> contents_;
121 122
122 // The URL we will be loading. 123 // The URL we will be loading.
123 GURL instant_url_; 124 GURL instant_url_;
124 125
125 // Called when |stale_page_timer_| fires. 126 // Called when |stale_page_timer_| fires.
126 base::Closure on_stale_callback_; 127 base::Closure on_stale_callback_;
127 128
128 // Used to mark when the page is stale. 129 // Used to mark when the page is stale.
129 base::Timer stale_page_timer_; 130 base::Timer stale_page_timer_;
130 131
131 // Used to get notifications about renderers. 132 // Used to get notifications about renderers.
132 content::NotificationRegistrar registrar_; 133 content::NotificationRegistrar registrar_;
133 134
134 DISALLOW_COPY_AND_ASSIGN(InstantLoader); 135 DISALLOW_COPY_AND_ASSIGN(InstantLoader);
135 }; 136 };
136 137
137 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_LOADER_H_ 138 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_LOADER_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_contents.cc ('k') | chrome/browser/ui/search/instant_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698