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

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

Issue 7745027: Dispatch the following IPC messages in TabContents and handle them via the TabContentsDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | Annotate | Revision Log
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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 const GURL& target_url); 557 const GURL& target_url);
558 void OnDocumentLoadedInFrame(int64 frame_id); 558 void OnDocumentLoadedInFrame(int64 frame_id);
559 void OnDidFinishLoad(int64 frame_id); 559 void OnDidFinishLoad(int64 frame_id);
560 void OnUpdateContentRestrictions(int restrictions); 560 void OnUpdateContentRestrictions(int restrictions);
561 void OnGoToEntryAtOffset(int offset); 561 void OnGoToEntryAtOffset(int offset);
562 void OnUpdateZoomLimits(int minimum_percent, 562 void OnUpdateZoomLimits(int minimum_percent,
563 int maximum_percent, 563 int maximum_percent,
564 bool remember); 564 bool remember);
565 void OnFocusedNodeChanged(bool is_editable_node); 565 void OnFocusedNodeChanged(bool is_editable_node);
566 void OnEnumerateDirectory(int request_id, const FilePath& path); 566 void OnEnumerateDirectory(int request_id, const FilePath& path);
567 void OnJSOutOfMemory();
568 void OnRegisterProtocolHandler(const std::string& protocol,
569 const GURL& url,
570 const string16& title);
571 void OnRegisterIntentHandler(const string16& action,
572 const string16& type,
573 const string16& href,
574 const string16& title);
575 void OnWebIntentDispatch(const IPC::Message& message,
576 const string16& action,
577 const string16& type,
578 const string16& data,
579 int intent_id);
567 580
568 // Changes the IsLoading state and notifies delegate as needed 581 // Changes the IsLoading state and notifies delegate as needed
569 // |details| is used to provide details on the load that just finished 582 // |details| is used to provide details on the load that just finished
570 // (but can be null if not applicable). Can be overridden. 583 // (but can be null if not applicable). Can be overridden.
571 void SetIsLoading(bool is_loading, 584 void SetIsLoading(bool is_loading,
572 LoadNotificationDetails* details); 585 LoadNotificationDetails* details);
573 586
574 // Called by derived classes to indicate that we're no longer waiting for a 587 // Called by derived classes to indicate that we're no longer waiting for a
575 // response. This won't actually update the throbber, but it will get picked 588 // response. This won't actually update the throbber, but it will get picked
576 // up at the next animation step if the throbber is going. 589 // up at the next animation step if the throbber is going.
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 ObserverList<TabContentsObserver> observers_; 879 ObserverList<TabContentsObserver> observers_;
867 880
868 // Content restrictions, used to disable print/copy etc based on content's 881 // Content restrictions, used to disable print/copy etc based on content's
869 // (full-page plugins for now only) permissions. 882 // (full-page plugins for now only) permissions.
870 int content_restrictions_; 883 int content_restrictions_;
871 884
872 DISALLOW_COPY_AND_ASSIGN(TabContents); 885 DISALLOW_COPY_AND_ASSIGN(TabContents);
873 }; 886 };
874 887
875 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 888 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/tab_contents/tab_contents_wrapper.cc ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698