Index: shell/data_pipe_peek.h |
diff --git a/mojo/shell/data_pipe_peek.h b/shell/data_pipe_peek.h |
similarity index 59% |
rename from mojo/shell/data_pipe_peek.h |
rename to shell/data_pipe_peek.h |
index ac3b91cfc171c6f11cb1e459f7af0653b8acaacc..adaabceadbfe1cddde6c9fc980db96d019ead593 100644 |
--- a/mojo/shell/data_pipe_peek.h |
+++ b/shell/data_pipe_peek.h |
@@ -2,6 +2,9 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#ifndef SHELL_DATA_PIPE_SEEK_H_ |
+#define SHELL_DATA_PIPE_SEEK_H_ |
+ |
#include <string> |
#include "mojo/public/cpp/system/core.h" |
@@ -17,19 +20,19 @@ namespace shell { |
// Return true and the first newline terminated line from source. Return false |
// if more than max_line_length bytes are scanned without seeing a newline, or |
// if the timeout is exceeded. |
-bool BlockingPeekLine( |
- DataPipeConsumerHandle source, |
- std::string* line, |
- size_t max_line_length, |
- MojoDeadline timeout); |
+bool BlockingPeekLine(DataPipeConsumerHandle source, |
+ std::string* line, |
+ size_t max_line_length, |
+ MojoDeadline timeout); |
// Return true and the first bytes_length bytes from source. Return false |
// if the timeout is exceeded. |
-bool BlockingPeekNBytes( |
- DataPipeConsumerHandle source, |
- std::string* bytes, |
- size_t bytes_length, |
- MojoDeadline timeout); |
- |
-} // namespace shell |
-} // namespace mojo |
+bool BlockingPeekNBytes(DataPipeConsumerHandle source, |
+ std::string* bytes, |
+ size_t bytes_length, |
+ MojoDeadline timeout); |
+ |
+} // namespace shell |
+} // namespace mojo |
+ |
+#endif // SHELL_DATA_PIPE_SEEK_H_ |