| OLD | NEW |
| 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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 const string16& href, | 573 const string16& href, |
| 574 const string16& title); | 574 const string16& title); |
| 575 void OnWebIntentDispatch(const IPC::Message& message, | 575 void OnWebIntentDispatch(const IPC::Message& message, |
| 576 const string16& action, | 576 const string16& action, |
| 577 const string16& type, | 577 const string16& type, |
| 578 const string16& data, | 578 const string16& data, |
| 579 int intent_id); | 579 int intent_id); |
| 580 void OnFindReply(int request_id, int number_of_matches, | 580 void OnFindReply(int request_id, int number_of_matches, |
| 581 const gfx::Rect& selection_rect, int active_match_ordinal, | 581 const gfx::Rect& selection_rect, int active_match_ordinal, |
| 582 bool final_update); | 582 bool final_update); |
| 583 void OnCrashedPlugin(const FilePath& plugin_path); |
| 583 | 584 |
| 584 // Changes the IsLoading state and notifies delegate as needed | 585 // Changes the IsLoading state and notifies delegate as needed |
| 585 // |details| is used to provide details on the load that just finished | 586 // |details| is used to provide details on the load that just finished |
| 586 // (but can be null if not applicable). Can be overridden. | 587 // (but can be null if not applicable). Can be overridden. |
| 587 void SetIsLoading(bool is_loading, | 588 void SetIsLoading(bool is_loading, |
| 588 LoadNotificationDetails* details); | 589 LoadNotificationDetails* details); |
| 589 | 590 |
| 590 // Called by derived classes to indicate that we're no longer waiting for a | 591 // Called by derived classes to indicate that we're no longer waiting for a |
| 591 // response. This won't actually update the throbber, but it will get picked | 592 // response. This won't actually update the throbber, but it will get picked |
| 592 // up at the next animation step if the throbber is going. | 593 // up at the next animation step if the throbber is going. |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 882 ObserverList<TabContentsObserver> observers_; | 883 ObserverList<TabContentsObserver> observers_; |
| 883 | 884 |
| 884 // Content restrictions, used to disable print/copy etc based on content's | 885 // Content restrictions, used to disable print/copy etc based on content's |
| 885 // (full-page plugins for now only) permissions. | 886 // (full-page plugins for now only) permissions. |
| 886 int content_restrictions_; | 887 int content_restrictions_; |
| 887 | 888 |
| 888 DISALLOW_COPY_AND_ASSIGN(TabContents); | 889 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 889 }; | 890 }; |
| 890 | 891 |
| 891 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 892 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |