| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "cloud_print/gcp20/prototype/printer.h" | 5 #include "cloud_print/gcp20/prototype/printer.h" |
| 6 | 6 |
| 7 #include <algorithm> | |
| 8 #include <limits.h> | 7 #include <limits.h> |
| 9 #include <stdio.h> | 8 #include <stdio.h> |
| 9 #include <algorithm> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/bind.h" | 13 #include "base/bind.h" |
| 14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 15 #include "base/file_util.h" | 15 #include "base/files/file_util.h" |
| 16 #include "base/format_macros.h" | 16 #include "base/format_macros.h" |
| 17 #include "base/guid.h" | 17 #include "base/guid.h" |
| 18 #include "base/json/json_reader.h" | 18 #include "base/json/json_reader.h" |
| 19 #include "base/json/json_writer.h" | 19 #include "base/json/json_writer.h" |
| 20 #include "base/rand_util.h" | 20 #include "base/rand_util.h" |
| 21 #include "base/strings/string_number_conversions.h" | 21 #include "base/strings/string_number_conversions.h" |
| 22 #include "base/strings/string_util.h" | 22 #include "base/strings/string_util.h" |
| 23 #include "base/strings/stringprintf.h" | 23 #include "base/strings/stringprintf.h" |
| 24 #include "cloud_print/gcp20/prototype/command_line_reader.h" | 24 #include "cloud_print/gcp20/prototype/command_line_reader.h" |
| 25 #include "cloud_print/gcp20/prototype/local_settings.h" | 25 #include "cloud_print/gcp20/prototype/local_settings.h" |
| (...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 | 933 |
| 934 dns_server_.UpdateMetadata(CreateTxt()); | 934 dns_server_.UpdateMetadata(CreateTxt()); |
| 935 | 935 |
| 936 if (connection_state_ == OFFLINE) { | 936 if (connection_state_ == OFFLINE) { |
| 937 requester_.reset(); | 937 requester_.reset(); |
| 938 xmpp_listener_.reset(); | 938 xmpp_listener_.reset(); |
| 939 } | 939 } |
| 940 | 940 |
| 941 return true; | 941 return true; |
| 942 } | 942 } |
| OLD | NEW |