forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG=517446 Review URL: https://codereview.chromium.org/1565933002 Cr-Commit-Position: refs/heads/master@{#368043}
- Loading branch information
Showing
7 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
include_rules = [ | ||
"+ios/public/consumer/base", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright 2013 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "base/debug/debugger.h" | ||
#include "ios/public/consumer/base/debugger.h" | ||
|
||
namespace ios { | ||
|
||
bool BeingDebugged() { | ||
return base::debug::BeingDebugged(); | ||
} | ||
|
||
} // namespace ios |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright 2013 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
{ | ||
'variables': { | ||
'chromium_code': 1, | ||
}, | ||
'targets': [ | ||
{ | ||
'target_name': 'ios_consumer_base', | ||
'type': 'static_library', | ||
'dependencies': [ | ||
'../../base/base.gyp:base', | ||
], | ||
'include_dirs': [ | ||
'../..', | ||
], | ||
'sources': [ | ||
'../public/consumer/base/debugger.h', | ||
'base/debugger.mm', | ||
], | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
sdefresne@chromium.org | ||
stuartmorgan@chromium.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
This directory exists to allow Chrome on iOS downstream code to call into | ||
Chromium code in a way that makes it visible in the upstream repository. | ||
It is currently a proof-of-concept but can be extended when/if the time | ||
comes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright 2013 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef IOS_PUBLIC_CONSUMER_BASE_DEBUGGER_H_ | ||
#define IOS_PUBLIC_CONSUMER_BASE_DEBUGGER_H_ | ||
|
||
namespace ios { | ||
|
||
// Returns true if the given process is being run under a debugger. | ||
bool BeingDebugged(); | ||
|
||
} // namespace ios | ||
|
||
#endif // IOS_PUBLIC_CONSUMER_BASE_DEBUGGER_H_ |