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

Side by Side Diff: chrome/renderer/render_view.h

Issue 67042: Make sure we can handle favicons that are provided as data: URLs (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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
« no previous file with comments | « no previous file | chrome/renderer/render_view.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_RENDERER_RENDER_VIEW_H_ 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_
6 #define CHROME_RENDERER_RENDER_VIEW_H_ 6 #define CHROME_RENDERER_RENDER_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 // Locates a sub frame with given xpath 637 // Locates a sub frame with given xpath
638 WebFrame* GetChildFrame(const std::wstring& frame_xpath) const; 638 WebFrame* GetChildFrame(const std::wstring& frame_xpath) const;
639 639
640 std::string GetAltHTMLForTemplate(const DictionaryValue& error_strings, 640 std::string GetAltHTMLForTemplate(const DictionaryValue& error_strings,
641 int template_resource_id) const; 641 int template_resource_id) const;
642 642
643 virtual void TransitionToCommittedForNewPage(); 643 virtual void TransitionToCommittedForNewPage();
644 644
645 virtual void DidAddHistoryItem(); 645 virtual void DidAddHistoryItem();
646 646
647 // Decodes a data: URL image or returns an empty image in case of failure.
648 SkBitmap ImageFromDataUrl(const GURL&) const;
649
647 // A helper method used by WasOpenedByUserGesture. 650 // A helper method used by WasOpenedByUserGesture.
648 bool WasOpenedByUserGestureHelper() const; 651 bool WasOpenedByUserGestureHelper() const;
649 652
650 void DumpLoadHistograms() const; 653 void DumpLoadHistograms() const;
651 654
652 // Bitwise-ORed set of extra bindings that have been enabled. See 655 // Bitwise-ORed set of extra bindings that have been enabled. See
653 // BindingsPolicy for details. 656 // BindingsPolicy for details.
654 int enabled_bindings_; 657 int enabled_bindings_;
655 658
656 // DOM Automation Controller CppBoundClass. 659 // DOM Automation Controller CppBoundClass.
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 IDMap<WebFrame> pending_extension_callbacks_; 834 IDMap<WebFrame> pending_extension_callbacks_;
832 835
833 // The currently selected text. This is currently only updated on Linux, where 836 // The currently selected text. This is currently only updated on Linux, where
834 // it's for the selection clipboard. 837 // it's for the selection clipboard.
835 std::string selection_text_; 838 std::string selection_text_;
836 839
837 DISALLOW_COPY_AND_ASSIGN(RenderView); 840 DISALLOW_COPY_AND_ASSIGN(RenderView);
838 }; 841 };
839 842
840 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 843 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698