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

Side by Side Diff: chrome/browser/browser_about_handler.cc

Issue 174277: override chrome:// URLs via extensions. (Closed)
Patch Set: fix linux errors Created 11 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
« no previous file with comments | « chrome/browser/browser_about_handler.h ('k') | chrome/browser/browser_prefs.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 #include "chrome/browser/browser_about_handler.h" 5 #include "chrome/browser/browser_about_handler.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 memory_html, &root, "t" /* template root node id */); 691 memory_html, &root, "t" /* template root node id */);
692 692
693 AboutSource* src = static_cast<AboutSource*>(source_); 693 AboutSource* src = static_cast<AboutSource*>(source_);
694 src->FinishDataRequest(template_html, request_id_); 694 src->FinishDataRequest(template_html, request_id_);
695 } 695 }
696 696
697 } // namespace 697 } // namespace
698 698
699 // ----------------------------------------------------------------------------- 699 // -----------------------------------------------------------------------------
700 700
701 bool WillHandleBrowserAboutURL(GURL* url) { 701 bool WillHandleBrowserAboutURL(GURL* url, Profile* profile) {
702 // We only handle about: schemes. 702 // We only handle about: schemes.
703 if (!url->SchemeIs(chrome::kAboutScheme)) 703 if (!url->SchemeIs(chrome::kAboutScheme))
704 return false; 704 return false;
705 705
706 // about:blank is special. Frames are allowed to access about:blank, 706 // about:blank is special. Frames are allowed to access about:blank,
707 // but they are not allowed to access other types of about pages. 707 // but they are not allowed to access other types of about pages.
708 // Just ignore the about:blank and let the TAB_CONTENTS_WEB handle it. 708 // Just ignore the about:blank and let the TAB_CONTENTS_WEB handle it.
709 if (LowerCaseEqualsASCII(url->spec(), chrome::kAboutBlankURL)) 709 if (LowerCaseEqualsASCII(url->spec(), chrome::kAboutBlankURL))
710 return false; 710 return false;
711 711
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 AboutIPCDialog::RunDialog(); 772 AboutIPCDialog::RunDialog();
773 return true; 773 return true;
774 } 774 }
775 #endif 775 #endif
776 776
777 #else 777 #else
778 // TODO(port) Implement this. 778 // TODO(port) Implement this.
779 #endif 779 #endif
780 return false; 780 return false;
781 } 781 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_about_handler.h ('k') | chrome/browser/browser_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698