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

Side by Side Diff: components/offline_pages/content/background_loader/background_loader_contents.h

Issue 2882513005: Propagate opener to BackgroundsContents. (Closed)
Patch Set: Tweaked the comment in DriveWebContentsManager::ShouldCreateWebContents Created 3 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 COMPONENTS_OFFLINE_PAGES_CONTENT_BACKGROUND_LOADER_BACKGROUND_LOADER_CON TENTS_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_CONTENT_BACKGROUND_LOADER_BACKGROUND_LOADER_CON TENTS_H_
6 #define COMPONENTS_OFFLINE_PAGES_CONTENT_BACKGROUND_LOADER_BACKGROUND_LOADER_CON TENTS_H_ 6 #define COMPONENTS_OFFLINE_PAGES_CONTENT_BACKGROUND_LOADER_BACKGROUND_LOADER_CON TENTS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/public/browser/web_contents_delegate.h" 10 #include "content/public/browser/web_contents_delegate.h"
(...skipping 27 matching lines...) Expand all
38 bool IsNeverVisible(content::WebContents* web_contents) override; 38 bool IsNeverVisible(content::WebContents* web_contents) override;
39 void CloseContents(content::WebContents* source) override; 39 void CloseContents(content::WebContents* source) override;
40 bool ShouldSuppressDialogs(content::WebContents* source) override; 40 bool ShouldSuppressDialogs(content::WebContents* source) override;
41 bool ShouldFocusPageAfterCrash() override; 41 bool ShouldFocusPageAfterCrash() override;
42 void CanDownload(const GURL& url, 42 void CanDownload(const GURL& url,
43 const std::string& request_method, 43 const std::string& request_method,
44 const base::Callback<void(bool)>& callback) override; 44 const base::Callback<void(bool)>& callback) override;
45 45
46 bool ShouldCreateWebContents( 46 bool ShouldCreateWebContents(
47 content::WebContents* web_contents, 47 content::WebContents* web_contents,
48 content::RenderFrameHost* opener,
48 content::SiteInstance* source_site_instance, 49 content::SiteInstance* source_site_instance,
49 int32_t route_id, 50 int32_t route_id,
50 int32_t main_frame_route_id, 51 int32_t main_frame_route_id,
51 int32_t main_frame_widget_route_id, 52 int32_t main_frame_widget_route_id,
52 content::mojom::WindowContainerType window_container_type, 53 content::mojom::WindowContainerType window_container_type,
53 const GURL& opener_url, 54 const GURL& opener_url,
54 const std::string& frame_name, 55 const std::string& frame_name,
55 const GURL& target_url, 56 const GURL& target_url,
56 const std::string& partition_id, 57 const std::string& partition_id,
57 content::SessionStorageNamespace* session_storage_namespace) override; 58 content::SessionStorageNamespace* session_storage_namespace) override;
(...skipping 24 matching lines...) Expand all
82 BackgroundLoaderContents(); 83 BackgroundLoaderContents();
83 84
84 std::unique_ptr<content::WebContents> web_contents_; 85 std::unique_ptr<content::WebContents> web_contents_;
85 content::BrowserContext* browser_context_; 86 content::BrowserContext* browser_context_;
86 87
87 DISALLOW_COPY_AND_ASSIGN(BackgroundLoaderContents); 88 DISALLOW_COPY_AND_ASSIGN(BackgroundLoaderContents);
88 }; 89 };
89 90
90 } // namespace background_loader 91 } // namespace background_loader
91 #endif // COMPONENTS_OFFLINE_PAGES_CONTENT_BACKGROUND_LOADER_BACKGROUND_LOADER_ CONTENTS_H_ 92 #endif // COMPONENTS_OFFLINE_PAGES_CONTENT_BACKGROUND_LOADER_BACKGROUND_LOADER_ CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | components/offline_pages/content/background_loader/background_loader_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698