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

Side by Side Diff: third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_service.h

Issue 21208003: Update protobuf to r428, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Protocol Buffers - Google's data interchange format 1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2008 Google Inc. All rights reserved. 2 // Copyright 2008 Google Inc. All rights reserved.
3 // http://code.google.com/p/protobuf/ 3 // http://code.google.com/p/protobuf/
4 // 4 //
5 // Redistribution and use in source and binary forms, with or without 5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are 6 // modification, are permitted provided that the following conditions are
7 // met: 7 // met:
8 // 8 //
9 // * Redistributions of source code must retain the above copyright 9 // * Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer. 10 // notice, this list of conditions and the following disclaimer.
(...skipping 20 matching lines...) Expand all
31 // Author: kenton@google.com (Kenton Varda) 31 // Author: kenton@google.com (Kenton Varda)
32 // Based on original Protocol Buffers design by 32 // Based on original Protocol Buffers design by
33 // Sanjay Ghemawat, Jeff Dean, and others. 33 // Sanjay Ghemawat, Jeff Dean, and others.
34 34
35 #ifndef GOOGLE_PROTOBUF_COMPILER_CPP_SERVICE_H__ 35 #ifndef GOOGLE_PROTOBUF_COMPILER_CPP_SERVICE_H__
36 #define GOOGLE_PROTOBUF_COMPILER_CPP_SERVICE_H__ 36 #define GOOGLE_PROTOBUF_COMPILER_CPP_SERVICE_H__
37 37
38 #include <map> 38 #include <map>
39 #include <string> 39 #include <string>
40 #include <google/protobuf/stubs/common.h> 40 #include <google/protobuf/stubs/common.h>
41 #include <google/protobuf/compiler/cpp/cpp_options.h>
41 #include <google/protobuf/descriptor.h> 42 #include <google/protobuf/descriptor.h>
42 43
43 namespace google { 44 namespace google {
44 namespace protobuf { 45 namespace protobuf {
45 namespace io { 46 namespace io {
46 class Printer; // printer.h 47 class Printer; // printer.h
47 } 48 }
48 } 49 }
49 50
50 namespace protobuf { 51 namespace protobuf {
51 namespace compiler { 52 namespace compiler {
52 namespace cpp { 53 namespace cpp {
53 54
54 class ServiceGenerator { 55 class ServiceGenerator {
55 public: 56 public:
56 // See generator.cc for the meaning of dllexport_decl. 57 // See generator.cc for the meaning of dllexport_decl.
57 explicit ServiceGenerator(const ServiceDescriptor* descriptor, 58 explicit ServiceGenerator(const ServiceDescriptor* descriptor,
58 const string& dllexport_decl); 59 const Options& options);
59 ~ServiceGenerator(); 60 ~ServiceGenerator();
60 61
61 // Header stuff. 62 // Header stuff.
62 63
63 // Generate the class definitions for the service's interface and the 64 // Generate the class definitions for the service's interface and the
64 // stub implementation. 65 // stub implementation.
65 void GenerateDeclarations(io::Printer* printer); 66 void GenerateDeclarations(io::Printer* printer);
66 67
67 // Source file stuff. 68 // Source file stuff.
68 69
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 110
110 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ServiceGenerator); 111 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ServiceGenerator);
111 }; 112 };
112 113
113 } // namespace cpp 114 } // namespace cpp
114 } // namespace compiler 115 } // namespace compiler
115 } // namespace protobuf 116 } // namespace protobuf
116 117
117 } // namespace google 118 } // namespace google
118 #endif // GOOGLE_PROTOBUF_COMPILER_CPP_SERVICE_H__ 119 #endif // GOOGLE_PROTOBUF_COMPILER_CPP_SERVICE_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698