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

Side by Side Diff: extensions/browser/guest_view/web_view/web_view_guest.cc

Issue 1320153002: Add new termination status for failed launch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and a nit. Created 5 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 | « content/browser/web_contents/web_contents_impl.cc ('k') | tools/metrics/actions/actions.xml » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/guest_view/web_view/web_view_guest.h" 5 #include "extensions/browser/guest_view/web_view/web_view_guest.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "components/browsing_data/storage_partition_http_cache_data_remover.h" 10 #include "components/browsing_data/storage_partition_http_cache_data_remover.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 case base::TERMINATION_STATUS_STILL_RUNNING: 121 case base::TERMINATION_STATUS_STILL_RUNNING:
122 return "abnormal"; 122 return "abnormal";
123 #if defined(OS_CHROMEOS) 123 #if defined(OS_CHROMEOS)
124 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED_BY_OOM: 124 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED_BY_OOM:
125 return "oom killed"; 125 return "oom killed";
126 #endif 126 #endif
127 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED: 127 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED:
128 return "killed"; 128 return "killed";
129 case base::TERMINATION_STATUS_PROCESS_CRASHED: 129 case base::TERMINATION_STATUS_PROCESS_CRASHED:
130 return "crashed"; 130 return "crashed";
131 case base::TERMINATION_STATUS_LAUNCH_FAILED:
132 return "failed to launch";
131 case base::TERMINATION_STATUS_MAX_ENUM: 133 case base::TERMINATION_STATUS_MAX_ENUM:
132 break; 134 break;
133 } 135 }
134 NOTREACHED() << "Unknown Termination Status."; 136 NOTREACHED() << "Unknown Termination Status.";
135 return "unknown"; 137 return "unknown";
136 } 138 }
137 139
138 std::string GetStoragePartitionIdFromSiteURL(const GURL& site_url) { 140 std::string GetStoragePartitionIdFromSiteURL(const GURL& site_url) {
139 const std::string& partition_id = site_url.query(); 141 const std::string& partition_id = site_url.query();
140 bool persist_storage = site_url.path().find("persist") != std::string::npos; 142 bool persist_storage = site_url.path().find("persist") != std::string::npos;
(...skipping 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after
1461 scoped_ptr<base::DictionaryValue> args(new base::DictionaryValue()); 1463 scoped_ptr<base::DictionaryValue> args(new base::DictionaryValue());
1462 DispatchEventToView( 1464 DispatchEventToView(
1463 new GuestViewEvent(webview::kEventExitFullscreen, args.Pass())); 1465 new GuestViewEvent(webview::kEventExitFullscreen, args.Pass()));
1464 } 1466 }
1465 // Since we changed fullscreen state, sending a Resize message ensures that 1467 // Since we changed fullscreen state, sending a Resize message ensures that
1466 // renderer/ sees the change. 1468 // renderer/ sees the change.
1467 web_contents()->GetRenderViewHost()->WasResized(); 1469 web_contents()->GetRenderViewHost()->WasResized();
1468 } 1470 }
1469 1471
1470 } // namespace extensions 1472 } // namespace extensions
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | tools/metrics/actions/actions.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698