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

Side by Side Diff: chrome/app/kasko_client.cc

Issue 1315303004: Turn components/crash into a layered component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 | « chrome/app/client_util.cc ('k') | chrome/breakpad.isolate » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #if defined(KASKO) 5 #if defined(KASKO)
6 6
7 #include "chrome/app/kasko_client.h" 7 #include "chrome/app/kasko_client.h"
8 8
9 #include <windows.h> 9 #include <windows.h>
10 10
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/process/process_handle.h" 15 #include "base/process/process_handle.h"
16 #include "breakpad/src/client/windows/common/ipc_protocol.h" 16 #include "breakpad/src/client/windows/common/ipc_protocol.h"
17 #include "chrome/app/chrome_watcher_client_win.h" 17 #include "chrome/app/chrome_watcher_client_win.h"
18 #include "chrome/chrome_watcher/chrome_watcher_main_api.h" 18 #include "chrome/chrome_watcher/chrome_watcher_main_api.h"
19 #include "chrome/common/chrome_constants.h" 19 #include "chrome/common/chrome_constants.h"
20 #include "components/crash/app/crash_keys_win.h" 20 #include "components/crash/content/app/crash_keys_win.h"
21 #include "syzygy/kasko/api/client.h" 21 #include "syzygy/kasko/api/client.h"
22 22
23 namespace { 23 namespace {
24 24
25 ChromeWatcherClient* g_chrome_watcher_client = nullptr; 25 ChromeWatcherClient* g_chrome_watcher_client = nullptr;
26 kasko::api::MinidumpType g_minidump_type = kasko::api::SMALL_DUMP_TYPE; 26 kasko::api::MinidumpType g_minidump_type = kasko::api::SMALL_DUMP_TYPE;
27 27
28 void GetKaskoCrashKeys(const kasko::api::CrashKey** crash_keys, 28 void GetKaskoCrashKeys(const kasko::api::CrashKey** crash_keys,
29 size_t* crash_key_count) { 29 size_t* crash_key_count) {
30 static_assert( 30 static_assert(
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 terminate_process_without_dump(); 120 terminate_process_without_dump();
121 } 121 }
122 122
123 extern "C" void __declspec(dllexport) ReportCrashWithProtobuf( 123 extern "C" void __declspec(dllexport) ReportCrashWithProtobuf(
124 EXCEPTION_POINTERS* info, const char* protobuf, size_t protobuf_length) { 124 EXCEPTION_POINTERS* info, const char* protobuf, size_t protobuf_length) {
125 ReportCrashWithProtobufAndMemoryRanges(info, protobuf, protobuf_length, 125 ReportCrashWithProtobufAndMemoryRanges(info, protobuf, protobuf_length,
126 nullptr, nullptr); 126 nullptr, nullptr);
127 } 127 }
128 128
129 #endif // defined(KASKO) 129 #endif // defined(KASKO)
OLDNEW
« no previous file with comments | « chrome/app/client_util.cc ('k') | chrome/breakpad.isolate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698