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

Side by Side Diff: content/browser/web_contents/web_contents_impl.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 void SetClosedByUserGesture(bool value) override; 411 void SetClosedByUserGesture(bool value) override;
412 bool GetClosedByUserGesture() const override; 412 bool GetClosedByUserGesture() const override;
413 void ViewSource() override; 413 void ViewSource() override;
414 void ViewFrameSource(const GURL& url, const PageState& page_state) override; 414 void ViewFrameSource(const GURL& url, const PageState& page_state) override;
415 int GetMinimumZoomPercent() const override; 415 int GetMinimumZoomPercent() const override;
416 int GetMaximumZoomPercent() const override; 416 int GetMaximumZoomPercent() const override;
417 void SetPageScale(float page_scale_factor) override; 417 void SetPageScale(float page_scale_factor) override;
418 gfx::Size GetPreferredSize() const override; 418 gfx::Size GetPreferredSize() const override;
419 bool GotResponseToLockMouseRequest(bool allowed) override; 419 bool GotResponseToLockMouseRequest(bool allowed) override;
420 bool HasOpener() const override; 420 bool HasOpener() const override;
421 WebContentsImpl* GetOpener() const override; 421 RenderFrameHostImpl* GetOpener() const override;
422 bool HasOriginalOpener() const override; 422 bool HasOriginalOpener() const override;
423 WebContents* GetOriginalOpener() const override; 423 RenderFrameHostImpl* GetOriginalOpener() const override;
424 void DidChooseColorInColorChooser(SkColor color) override; 424 void DidChooseColorInColorChooser(SkColor color) override;
425 void DidEndColorChooser() override; 425 void DidEndColorChooser() override;
426 int DownloadImage(const GURL& url, 426 int DownloadImage(const GURL& url,
427 bool is_favicon, 427 bool is_favicon,
428 uint32_t max_bitmap_size, 428 uint32_t max_bitmap_size,
429 bool bypass_cache, 429 bool bypass_cache,
430 const ImageDownloadCallback& callback) override; 430 const ImageDownloadCallback& callback) override;
431 bool IsSubframe() const override; 431 bool IsSubframe() const override;
432 void Find(int request_id, 432 void Find(int request_id,
433 const base::string16& search_text, 433 const base::string16& search_text,
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
1154 1154
1155 // Finds the new WebContentsImpl by |main_frame_widget_route_id|, initializes 1155 // Finds the new WebContentsImpl by |main_frame_widget_route_id|, initializes
1156 // it for renderer-initiated creation, and returns it. Note that this can only 1156 // it for renderer-initiated creation, and returns it. Note that this can only
1157 // be called once as this call also removes it from the internal map. 1157 // be called once as this call also removes it from the internal map.
1158 WebContentsImpl* GetCreatedWindow(int process_id, 1158 WebContentsImpl* GetCreatedWindow(int process_id,
1159 int main_frame_widget_route_id); 1159 int main_frame_widget_route_id);
1160 1160
1161 // Sends a Page message IPC. 1161 // Sends a Page message IPC.
1162 void SendPageMessage(IPC::Message* msg); 1162 void SendPageMessage(IPC::Message* msg);
1163 1163
1164 void SetOpenerForNewContents(FrameTreeNode* opener, bool opener_suppressed);
1165
1164 // Tracking loading progress ------------------------------------------------- 1166 // Tracking loading progress -------------------------------------------------
1165 1167
1166 // Resets the tracking state of the current load progress. 1168 // Resets the tracking state of the current load progress.
1167 void ResetLoadProgressState(); 1169 void ResetLoadProgressState();
1168 1170
1169 // Notifies the delegate that the load progress was updated. 1171 // Notifies the delegate that the load progress was updated.
1170 void SendChangeLoadProgress(); 1172 void SendChangeLoadProgress();
1171 1173
1172 // Notifies the delegate of a change in loading state. 1174 // Notifies the delegate of a change in loading state.
1173 // |details| is used to provide details on the load that just finished 1175 // |details| is used to provide details on the load that just finished
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
1588 // Adds/removes a callback called on creation of each new WebContents. 1590 // Adds/removes a callback called on creation of each new WebContents.
1589 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1591 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1590 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1592 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1591 1593
1592 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); 1594 DISALLOW_COPY_AND_ASSIGN(FriendWrapper);
1593 }; 1595 };
1594 1596
1595 } // namespace content 1597 } // namespace content
1596 1598
1597 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1599 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698