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

Side by Side Diff: chrome/common/external_ipc_dumper.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "base/files/file_path.h" 5 #include "base/files/file_path.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "base/native_library.h" 7 #include "base/native_library.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "build/build_config.h"
9 #include "chrome/common/external_ipc_dumper.h" 10 #include "chrome/common/external_ipc_dumper.h"
10 11
11 typedef IPC::ChannelProxy::OutgoingMessageFilter* (*GetFilterFunction)(); 12 typedef IPC::ChannelProxy::OutgoingMessageFilter* (*GetFilterFunction)();
12 typedef void (*SetDumpDirectoryFunction)(const base::FilePath&); 13 typedef void (*SetDumpDirectoryFunction)(const base::FilePath&);
13 14
14 const char kFilterEntryName[] = "GetFilter"; 15 const char kFilterEntryName[] = "GetFilter";
15 const char kSetDumpDirectoryEntryName[] = "SetDumpDirectory"; 16 const char kSetDumpDirectoryEntryName[] = "SetDumpDirectory";
16 17
17 #if defined(OS_WIN) 18 #if defined(OS_WIN)
18 #define IPC_MESSAGE_DUMP_MODULE FILE_PATH_LITERAL("ipc_message_dump.dll") 19 #define IPC_MESSAGE_DUMP_MODULE FILE_PATH_LITERAL("ipc_message_dump.dll")
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 52
52 GetFilterFunction filter_entry_point = reinterpret_cast<GetFilterFunction>( 53 GetFilterFunction filter_entry_point = reinterpret_cast<GetFilterFunction>(
53 base::GetFunctionPointerFromNativeLibrary(library, kFilterEntryName)); 54 base::GetFunctionPointerFromNativeLibrary(library, kFilterEntryName));
54 if (!filter_entry_point) { 55 if (!filter_entry_point) {
55 LOG(ERROR) << kFilterEntryName << " not exported by message dump module."; 56 LOG(ERROR) << kFilterEntryName << " not exported by message dump module.";
56 return NULL; 57 return NULL;
57 } 58 }
58 59
59 return filter_entry_point(); 60 return filter_entry_point();
60 } 61 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/sync_type_unittest.cc ('k') | chrome/common/importer/firefox_importer_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698