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

Side by Side Diff: chrome_elf/chrome_elf_util.h

Issue 1656453002: [Chrome ELF] Early browser security support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review changes, part 1. Created 4 years, 10 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 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 #ifndef CHROME_ELF_CHROME_ELF_UTIL_H_ 5 #ifndef CHROME_ELF_CHROME_ELF_UTIL_H_
6 #define CHROME_ELF_CHROME_ELF_UTIL_H_ 6 #define CHROME_ELF_CHROME_ELF_UTIL_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 9
10 enum class ProcessType { 10 enum class ProcessType {
(...skipping 20 matching lines...) Expand all
31 bool ReportingIsEnforcedByPolicy(bool* breakpad_enabled); 31 bool ReportingIsEnforcedByPolicy(bool* breakpad_enabled);
32 32
33 // Initializes |g_process_type| which stores whether or not the current process 33 // Initializes |g_process_type| which stores whether or not the current process
34 // is the main browser process. 34 // is the main browser process.
35 void InitializeProcessType(); 35 void InitializeProcessType();
36 36
37 // Returns true if invoked in a Chrome process other than the main browser 37 // Returns true if invoked in a Chrome process other than the main browser
38 // process. False otherwise. 38 // process. False otherwise.
39 bool IsNonBrowserProcess(); 39 bool IsNonBrowserProcess();
40 40
41 // Setup any early browser-process security.
42 void EarlyBrowserSecurity();
43
41 // Caches the |ProcessType| of the current process. 44 // Caches the |ProcessType| of the current process.
42 extern ProcessType g_process_type; 45 extern ProcessType g_process_type;
43 46
44 #endif // CHROME_ELF_CHROME_ELF_UTIL_H_ 47 #endif // CHROME_ELF_CHROME_ELF_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698