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

Side by Side Diff: chrome/browser/tab_contents/background_contents.h

Issue 691823002: Add WebContents source to methods in WebContentsDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 Delegate* delegate, 49 Delegate* delegate,
50 const std::string& partition_id, 50 const std::string& partition_id,
51 content::SessionStorageNamespace* session_storage_namespace); 51 content::SessionStorageNamespace* session_storage_namespace);
52 ~BackgroundContents() override; 52 ~BackgroundContents() override;
53 53
54 content::WebContents* web_contents() const { return web_contents_.get(); } 54 content::WebContents* web_contents() const { return web_contents_.get(); }
55 virtual const GURL& GetURL() const; 55 virtual const GURL& GetURL() const;
56 56
57 // content::WebContentsDelegate implementation: 57 // content::WebContentsDelegate implementation:
58 void CloseContents(content::WebContents* source) override; 58 void CloseContents(content::WebContents* source) override;
59 bool ShouldSuppressDialogs() override; 59 bool ShouldSuppressDialogs(content::WebContents* source) override;
60 void DidNavigateMainFramePostCommit(content::WebContents* tab) override; 60 void DidNavigateMainFramePostCommit(content::WebContents* tab) override;
61 void AddNewContents(content::WebContents* source, 61 void AddNewContents(content::WebContents* source,
62 content::WebContents* new_contents, 62 content::WebContents* new_contents,
63 WindowOpenDisposition disposition, 63 WindowOpenDisposition disposition,
64 const gfx::Rect& initial_pos, 64 const gfx::Rect& initial_pos,
65 bool user_gesture, 65 bool user_gesture,
66 bool* was_blocked) override; 66 bool* was_blocked) override;
67 bool IsNeverVisible(content::WebContents* web_contents) override; 67 bool IsNeverVisible(content::WebContents* web_contents) override;
68 68
69 // content::WebContentsObserver implementation: 69 // content::WebContentsObserver implementation:
(...skipping 25 matching lines...) Expand all
95 BackgroundContents* contents; 95 BackgroundContents* contents;
96 96
97 // The name of the parent frame for these contents. 97 // The name of the parent frame for these contents.
98 const base::string16& frame_name; 98 const base::string16& frame_name;
99 99
100 // The ID of the parent application (if any). 100 // The ID of the parent application (if any).
101 const base::string16& application_id; 101 const base::string16& application_id;
102 }; 102 };
103 103
104 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ 104 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_manager.cc ('k') | chrome/browser/tab_contents/background_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698