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

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

Issue 2521793003: Fix WebContentsDelegate::ShouldCreateWebContents implementations. (Closed)
Patch Set: Fix android compile. Created 4 years 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 26 matching lines...) Expand all
37 // content::WebContentsDelegate implementation: 37 // content::WebContentsDelegate implementation:
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* contents, 47 content::WebContents* web_contents,
48 content::SiteInstance* source_site_instance,
48 int32_t route_id, 49 int32_t route_id,
49 int32_t main_frame_route_id, 50 int32_t main_frame_route_id,
50 int32_t main_frame_widget_route_id, 51 int32_t main_frame_widget_route_id,
51 WindowContainerType window_container_type, 52 WindowContainerType window_container_type,
53 const GURL& opener_url,
52 const std::string& frame_name, 54 const std::string& frame_name,
53 const GURL& target_url, 55 const GURL& target_url,
54 const std::string& partition_id, 56 const std::string& partition_id,
55 content::SessionStorageNamespace* session_storage_namespace) override; 57 content::SessionStorageNamespace* session_storage_namespace) override;
56 58
57 void AddNewContents(content::WebContents* source, 59 void AddNewContents(content::WebContents* source,
58 content::WebContents* new_contents, 60 content::WebContents* new_contents,
59 WindowOpenDisposition disposition, 61 WindowOpenDisposition disposition,
60 const gfx::Rect& initial_rect, 62 const gfx::Rect& initial_rect,
61 bool user_gesture, 63 bool user_gesture,
(...skipping 16 matching lines...) Expand all
78 BackgroundLoaderContents(); 80 BackgroundLoaderContents();
79 81
80 std::unique_ptr<content::WebContents> web_contents_; 82 std::unique_ptr<content::WebContents> web_contents_;
81 content::BrowserContext* browser_context_; 83 content::BrowserContext* browser_context_;
82 84
83 DISALLOW_COPY_AND_ASSIGN(BackgroundLoaderContents); 85 DISALLOW_COPY_AND_ASSIGN(BackgroundLoaderContents);
84 }; 86 };
85 87
86 } // namespace background_loader 88 } // namespace background_loader
87 #endif // COMPONENTS_OFFLINE_PAGES_CONTENT_BACKGROUND_LOADER_BACKGROUND_LOADER_ CONTENTS_H_ 89 #endif // COMPONENTS_OFFLINE_PAGES_CONTENT_BACKGROUND_LOADER_BACKGROUND_LOADER_ CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698