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

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

Issue 4979003: Implement web app definition parsing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nacl64 build Created 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/tab_contents/tab_contents.h" 5 #include "chrome/browser/tab_contents/tab_contents.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 2034 matching lines...) Expand 10 before | Expand all | Expand 10 after
2045 WideToUTF16Hack(plugin_name)), 2045 WideToUTF16Hack(plugin_name)),
2046 crash_icon, true)); 2046 crash_icon, true));
2047 } 2047 }
2048 2048
2049 void TabContents::OnCrashedWorker() { 2049 void TabContents::OnCrashedWorker() {
2050 AddInfoBar(new SimpleAlertInfoBarDelegate( 2050 AddInfoBar(new SimpleAlertInfoBarDelegate(
2051 this, l10n_util::GetStringUTF16(IDS_WEBWORKER_CRASHED_PROMPT), 2051 this, l10n_util::GetStringUTF16(IDS_WEBWORKER_CRASHED_PROMPT),
2052 NULL, true)); 2052 NULL, true));
2053 } 2053 }
2054 2054
2055 void TabContents::OnDidGetApplicationInfo( 2055 void TabContents::OnDidGetApplicationInfo(int32 page_id,
2056 int32 page_id, 2056 const WebApplicationInfo& info) {
2057 const webkit_glue::WebApplicationInfo& info) {
2058 web_app_info_ = info; 2057 web_app_info_ = info;
2059 2058
2060 if (delegate()) 2059 if (delegate())
2061 delegate()->OnDidGetApplicationInfo(this, page_id); 2060 delegate()->OnDidGetApplicationInfo(this, page_id);
2062 } 2061 }
2063 2062
2064 void TabContents::OnDisabledOutdatedPlugin(const string16& name, 2063 void TabContents::OnDisabledOutdatedPlugin(const string16& name,
2065 const GURL& update_url) { 2064 const GURL& update_url) {
2066 new DisabledPluginInfoBar(this, name, update_url); 2065 new DisabledPluginInfoBar(this, name, update_url);
2067 } 2066 }
(...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after
3325 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); 3324 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save));
3326 } 3325 }
3327 3326
3328 Profile* TabContents::GetProfileForPasswordManager() { 3327 Profile* TabContents::GetProfileForPasswordManager() {
3329 return profile(); 3328 return profile();
3330 } 3329 }
3331 3330
3332 bool TabContents::DidLastPageLoadEncounterSSLErrors() { 3331 bool TabContents::DidLastPageLoadEncounterSSLErrors() {
3333 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); 3332 return controller().ssl_manager()->ProcessedSSLErrorFromRequest();
3334 } 3333 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698