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

Side by Side Diff: content/browser/tab_contents/tab_contents.h

Issue 8343070: Support dispositon attribute. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Try again Created 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 friend class TabContentsViewGtk; 506 friend class TabContentsViewGtk;
507 #endif 507 #endif
508 508
509 // So InterstitialPage can access SetIsLoading. 509 // So InterstitialPage can access SetIsLoading.
510 friend class InterstitialPage; 510 friend class InterstitialPage;
511 511
512 // TODO(brettw) TestTabContents shouldn't exist! 512 // TODO(brettw) TestTabContents shouldn't exist!
513 friend class TestTabContents; 513 friend class TestTabContents;
514 514
515 // Message handlers. 515 // Message handlers.
516 void OnRegisterIntentHandler(const string16& action,
517 const string16& type,
518 const string16& href,
519 const string16& title,
520 const string16& disposition);
521 void OnWebIntentDispatch(const IPC::Message& message,
522 const webkit_glue::WebIntentData& intent,
523 int intent_id);
516 void OnDidStartProvisionalLoadForFrame(int64 frame_id, 524 void OnDidStartProvisionalLoadForFrame(int64 frame_id,
517 bool main_frame, 525 bool main_frame,
518 const GURL& opener_url, 526 const GURL& opener_url,
519 const GURL& url); 527 const GURL& url);
520 void OnDidRedirectProvisionalLoad(int32 page_id, 528 void OnDidRedirectProvisionalLoad(int32 page_id,
521 const GURL& opener_url, 529 const GURL& opener_url,
522 const GURL& source_url, 530 const GURL& source_url,
523 const GURL& target_url); 531 const GURL& target_url);
524 void OnDidFailProvisionalLoadWithError( 532 void OnDidFailProvisionalLoadWithError(
525 const ViewHostMsg_DidFailProvisionalLoadWithError_Params& params); 533 const ViewHostMsg_DidFailProvisionalLoadWithError_Params& params);
(...skipping 10 matching lines...) Expand all
536 void OnGoToEntryAtOffset(int offset); 544 void OnGoToEntryAtOffset(int offset);
537 void OnUpdateZoomLimits(int minimum_percent, 545 void OnUpdateZoomLimits(int minimum_percent,
538 int maximum_percent, 546 int maximum_percent,
539 bool remember); 547 bool remember);
540 void OnFocusedNodeChanged(bool is_editable_node); 548 void OnFocusedNodeChanged(bool is_editable_node);
541 void OnEnumerateDirectory(int request_id, const FilePath& path); 549 void OnEnumerateDirectory(int request_id, const FilePath& path);
542 void OnJSOutOfMemory(); 550 void OnJSOutOfMemory();
543 void OnRegisterProtocolHandler(const std::string& protocol, 551 void OnRegisterProtocolHandler(const std::string& protocol,
544 const GURL& url, 552 const GURL& url,
545 const string16& title); 553 const string16& title);
546 void OnRegisterIntentHandler(const string16& action,
547 const string16& type,
548 const string16& href,
549 const string16& title);
550 void OnWebIntentDispatch(const IPC::Message& message,
551 const webkit_glue::WebIntentData& intent,
552 int intent_id);
553 void OnFindReply(int request_id, int number_of_matches, 554 void OnFindReply(int request_id, int number_of_matches,
554 const gfx::Rect& selection_rect, int active_match_ordinal, 555 const gfx::Rect& selection_rect, int active_match_ordinal,
555 bool final_update); 556 bool final_update);
556 void OnCrashedPlugin(const FilePath& plugin_path); 557 void OnCrashedPlugin(const FilePath& plugin_path);
557 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); 558 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy);
558 559
559 // Changes the IsLoading state and notifies delegate as needed 560 // Changes the IsLoading state and notifies delegate as needed
560 // |details| is used to provide details on the load that just finished 561 // |details| is used to provide details on the load that just finished
561 // (but can be null if not applicable). Can be overridden. 562 // (but can be null if not applicable). Can be overridden.
562 void SetIsLoading(bool is_loading, 563 void SetIsLoading(bool is_loading,
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 ObserverList<TabContentsObserver> observers_; 861 ObserverList<TabContentsObserver> observers_;
861 862
862 // Content restrictions, used to disable print/copy etc based on content's 863 // Content restrictions, used to disable print/copy etc based on content's
863 // (full-page plugins for now only) permissions. 864 // (full-page plugins for now only) permissions.
864 int content_restrictions_; 865 int content_restrictions_;
865 866
866 DISALLOW_COPY_AND_ASSIGN(TabContents); 867 DISALLOW_COPY_AND_ASSIGN(TabContents);
867 }; 868 };
868 869
869 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 870 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698